--extra-cflags and --extra-ldflags clobbers previous options. This
authorRoine Gustafsson <roine@users.sourceforge.net>
Wed, 5 Jan 2005 01:45:52 +0000 (01:45 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Jan 2005 01:45:52 +0000 (01:45 +0000)
patch will add instead of clobber.
patch by (Roine Gustafsson <roine users.sourceforge net)

Originally committed as revision 3807 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index b085a0e..b5ddb48 100755 (executable)
--- a/configure
+++ b/configure
@@ -370,9 +370,9 @@ for opt do
   ;;
   --make=*) make=`echo $opt | cut -d '=' -f 2`
   ;;
-  --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}"
+  --extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
   ;;
-  --extra-ldflags=*) LDFLAGS=${opt#--extra-ldflags=}
+  --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
   ;;
   --extra-libs=*) extralibs=${opt#--extra-libs=}
   ;;