OSDN Git Service

Accept multiple --extra-ldflags and --extra-libs options.
authorDiego Biurrun <diego@biurrun.de>
Thu, 2 Nov 2006 12:12:52 +0000 (12:12 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 2 Nov 2006 12:12:52 +0000 (12:12 +0000)
Originally committed as revision 6869 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 5accefd..ff12f64 100755 (executable)
--- a/configure
+++ b/configure
@@ -713,9 +713,9 @@ for opt do
   ;;
   --extra-cflags=*) add_cflags "$optval"
   ;;
-  --extra-ldflags=*) EXTRALDFLAGS="$optval"
+  --extra-ldflags=*) add_ldflags "$optval"
   ;;
-  --extra-libs=*) extralibs="$optval"
+  --extra-libs=*) add_extralibs "$optval"
   ;;
   --build-suffix=*) BUILDSUF="$optval"
   ;;
@@ -917,8 +917,8 @@ EOF
     shlibdir='${PREFIX}'
 fi
 
-# Combine FFLDFLAGS, EXTRALDFLAGS and the LDFLAGS environment variable.
-LDFLAGS="$FFLDFLAGS $EXTRALDFLAGS $LDFLAGS"
+# Combine FFLDFLAGS and the LDFLAGS environment variable.
+LDFLAGS="$FFLDFLAGS $LDFLAGS"
 
 test -n "$cross_prefix" && cross_compile=yes
 cc="${cross_prefix}${cc}"