]> granicus.if.org Git - libx264/commitdiff
fix compilation as a shared library on x86_64 (regression in r696)
authorLoren Merritt <pengvado@videolan.org>
Sun, 25 Nov 2007 12:38:19 +0000 (12:38 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 25 Nov 2007 12:38:19 +0000 (12:38 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@701 df754926-b1dd-0310-bc7b-ec298dee348c

configure

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