[Ffmpeg-cvslog] CVS: ffmpeg configure,1.186,1.187
Michael Niedermayer CVS
michael
Mon Jun 27 02:55:30 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv22421
Modified Files:
configure
Log Message:
x86_64 + PIC fix by (Jacob Meuser: jakemsr, jakemsr com)
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- configure 25 Jun 2005 09:04:08 -0000 1.186
+++ configure 27 Jun 2005 00:55:28 -0000 1.187
@@ -197,6 +197,7 @@
need_inet_aton="no"
ffserver="yes"
ffplay="yes"
+LIBOBJFLAGS=""
LDFLAGS=-Wl,--warn-common
FFSLDFLAGS=-Wl,-E
LDCONFIG="ldconfig"
@@ -276,7 +277,7 @@
audio_oss="yes"
dv1394="no"
make="gmake"
-CFLAGS="$CFLAGS \$(PIC)"
+LIBOBJFLAGS="\$(PIC)"
LDFLAGS="$LDFLAGS -export-dynamic -pthread"
LDCONFIG="ldconfig -m \$(libdir)"
extralibs="$extralibs -lossaudio"
@@ -1103,6 +1104,16 @@
fi
fi
+# PIC flags for shared library objects where they are needed
+if test "$lshared" = "yes" ; then
+ # LIBOBJFLAGS may have already been set in the OS configuration
+ if test -z "$LIBOBJFLAGS" ; then
+ if test "$cpu" = "x86_64" ; then
+ LIBOBJFLAGS="\$(PIC)"
+ fi
+ fi
+fi
+
if test x"$bindir" = x""; then
bindir="${prefix}/bin"
fi
@@ -1219,6 +1230,7 @@
echo "LDCONFIG=$LDCONFIG" >> config.mak
echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak
echo "SHFLAGS=$SHFLAGS" >> config.mak
+echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak
echo "BUILDSUF=$BUILDSUF" >> config.mak
echo "LIBPREF=$LIBPREF" >> config.mak
echo "LIBSUF=\${BUILDSUF}$LIBSUF" >> config.mak
More information about the ffmpeg-cvslog
mailing list