[Ffmpeg-devel] ./configure suggestion
Steven M. Schultz
sms
Tue Aug 9 19:34:06 CEST 2005
Hi -
I've consolidated the 3 changes to ./configure into one patch.
1. Remove the extraneous "-d" in the Darwin LDFLAGS
2. Add -lavutil to the Libs: section of the libavcodec .pc file
3. Add -maltivec to the CFLAGS when using the gcc on OSX - this will
enable the vectorized mem* routines and remove the warning:
xvidff.c:167: warning: vectorised memset disabled due to use of -faltivec without -maltivec
Numerous other files also get this warning - so adding -maltivec will
remove the warnings for other files as well. I did not change the
other line (the non-Apple PPC case) since I have no way of testing it.
Cheers,
Steven Schultz
-------------- next part --------------
--- configure.dist 2005-08-09 10:24:18.000000000 -0700
+++ configure 2005-08-09 10:25:47.000000000 -0700
@@ -312,7 +312,7 @@
extralibs=""
darwin="yes"
strip="strip -x"
-LDFLAGS="-Wl,-d,-search_paths_first"
+LDFLAGS="-Wl,-search_paths_first"
FFSLDFLAGS=-Wl,-bind_at_load
;;
MINGW32*)
@@ -736,7 +736,7 @@
if test $cpu = "powerpc"; then
if test $altivec = "yes"; then
if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then
- CFLAGS="$CFLAGS -faltivec"
+ CFLAGS="$CFLAGS -faltivec -maltivec"
else
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
fi
@@ -1764,7 +1764,7 @@
Version: $lavc_version
Requires: $requires libavutil = $lavu_version
Conflicts:
-Libs: -L\${libdir} -lavcodec $extralibs
+Libs: -L\${libdir} -lavcodec -lavutil $extralibs
Cflags: -I\${includedir} -I\${includedir}/ffmpeg
EOF
More information about the ffmpeg-devel
mailing list