diff mbox

[PULL,30/30] configure: postfix --extra-cflags to QEMU_CFLAGS

Message ID de3852877f1e452321352fdb7e678f079876a41b.1433336870.git.mjt@msgid.tls.msk.ru
State Accepted
Commit de3852877f1e452321352fdb7e678f079876a41b
Headers show

Commit Message

Michael Tokarev June 3, 2015, 1:08 p.m. UTC
From: Alex Bennée <alex.bennee@linaro.org>

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 <alex.bennee@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/configure b/configure
index 4e2f78a..69190d2 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"