From 1e027be7e91d854d7a0132e4a32bdf222c33dcfe Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 14 Oct 2010 11:19:04 +0200 Subject: [PATCH] configure: Support disabling warnings in $gcc_flags -Wall enables a bunch of warnings at once. configure puts it after $gcc_flags. This makes it impossible to disable warnings enabled by -Wall there. Fix by putting configured flags last. Signed-off-by: Markus Armbruster Signed-off-by: Blue Swirl --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index a079a494a4..5f4d7180b5 100755 --- a/configure +++ b/configure @@ -154,7 +154,7 @@ int main(void) { return 0; } EOF for flag in $gcc_flags; do if compile_prog "-Werror $QEMU_CFLAGS" "-Werror $flag" ; then - QEMU_CFLAGS="$flag $QEMU_CFLAGS" + QEMU_CFLAGS="$QEMU_CFLAGS $flag" fi done