aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-10-14 11:19:04 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-20 20:52:43 +0000
commit1e027be7e91d854d7a0132e4a32bdf222c33dcfe (patch)
treea0576f91a538d2b20c0776c2cb64dc645d79ae29
parentc3b08d0e05f381b0a02647038d454eecf51ae014 (diff)
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 <armbru@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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