summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/P02-darwin-pic.patch
blob: e93180fd3d8d5c7e687873fd5644adbc2def1a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/configure b/configure
index e01d9fd..d5d6aec 100755
--- a/configure
+++ b/configure
@@ -2413,6 +2413,7 @@ case $target_os in
         AVSERVERLDFLAGS=-Wl,-bind_at_load
         objformat="macho"
         enabled x86_64 && objformat="macho64"
+        enabled x86_64 && enable pic
         enabled_any pic shared ||
             { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
         ;;
@@ -2530,7 +2531,7 @@ esac
 
 echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate
 
-check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
+#check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
 
 set_default $PATHS_LIST