From f4e2c4b13471ceacc801b573a01d23ed2ab2b4e2 Mon Sep 17 00:00:00 2001 From: Roine Gustafsson <roine@users.sourceforge.net> Date: Wed, 5 Jan 2005 01:45:52 +0000 Subject: [PATCH] --extra-cflags and --extra-ldflags clobbers previous options. This 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b085a0ea1a4..b5ddb48f5b6 100755 --- 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=} ;; -- GitLab