]> granicus.if.org Git - libx264/commitdiff
check whether ld supports -Bsymbolic before using it
authorLoren Merritt <pengvado@videolan.org>
Mon, 3 Dec 2007 01:16:57 +0000 (01:16 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 3 Dec 2007 01:16:57 +0000 (01:16 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@707 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index 136b8361d777b698ce2b6e001a6b51105b1f1ddb..aff77e9a990d17a478227d19f9cf0945298f05aa 100755 (executable)
--- a/configure
+++ b/configure
@@ -396,7 +396,7 @@ if [ "$pic" = "yes" ] ; then
     CFLAGS="$CFLAGS -fPIC"
     ASFLAGS="$ASFLAGS -D__PIC__"
     # resolve textrels in the x86 asm
-    LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
+    cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
 fi
 
 if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then