From: Alex Bennée Date: Wed, 3 Jun 2015 08:56:37 +0000 (+0100) Subject: configure: postfix --extra-cflags to QEMU_CFLAGS X-Git-Tag: v2.4.0-rc0~100^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de3852877f1e452321352fdb7e678f079876a41b;p=thirdparty%2Fqemu.git configure: postfix --extra-cflags to QEMU_CFLAGS It makes sense that extra-cflags should be appended after the normal CFLAGS so they don't get overridden by default behaviour. This way if you specify something like: ./configure --extra-cflags="-O0" You will see the requested behaviour. Signed-off-by: Alex Bennée Signed-off-by: Michael Tokarev --- diff --git a/configure b/configure index 4e2f78a1733..69190d27934 100755 --- a/configure +++ b/configure @@ -353,7 +353,7 @@ for opt do ;; --cpu=*) cpu="$optarg" ;; - --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" + --extra-cflags=*) QEMU_CFLAGS="$QEMU_CFLAGS $optarg" EXTRA_CFLAGS="$optarg" ;; --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS"