]> granicus.if.org Git - libx264/commitdiff
regression in r669: --enable-shared should imply --enable-pic on some archs.
authorLoren Merritt <pengvado@videolan.org>
Sat, 18 Aug 2007 01:13:22 +0000 (01:13 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sat, 18 Aug 2007 01:13:22 +0000 (01:13 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@670 df754926-b1dd-0310-bc7b-ec298dee348c

configure

index 9753556dc79362264556ce255dd425106fedc53c..e125674ab7c140d3f672af9c87299d86af6f75c6 100755 (executable)
--- a/configure
+++ b/configure
@@ -152,9 +152,6 @@ for opt do
             ;;
         --enable-shared)
             shared="yes"
-            if [ $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" ] ; then
-                pic="yes"
-            fi
             ;;
         --enable-visualize)
             LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
@@ -305,6 +302,10 @@ esac
 
 # check requirements
 
+if [ $shared = yes -a \( $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" \) ] ; then
+    pic="yes"
+fi
+
 if [ $SYS = MACOSX -a $ARCH = X86 ]
 then
   # we want Apple's nasm from Xcode 2.4.1 or later