summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure3
-rw-r--r--mangle.h4
2 files changed, 1 insertions, 6 deletions
diff --git a/configure b/configure
index 132ec7efea..9137544399 100755
--- a/configure
+++ b/configure
@@ -2580,14 +2580,13 @@ echocheck "PIC"
pic=no
cat > $TMPC << EOF
int main(void) {
-// keep in sync with mangle.h and libavutil/internal.h
#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
#error PIC not enabled
#endif
return 0;
}
EOF
-cc_check && pic=yes
+cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
echores $pic
echocheck "yasm"
diff --git a/mangle.h b/mangle.h
index 6179bce4ab..64c6f75619 100644
--- a/mangle.h
+++ b/mangle.h
@@ -31,10 +31,6 @@
#define attribute_used
#endif
-// keep in sync with configure PIC check and libavutil/internal.h
-#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
-# define PIC
-#endif
#if ARCH_X86_64 && defined(PIC)
#define MANGLE(a) EXTERN_PREFIX #a "(%%rip)"
#else