From: Markus Armbruster Date: Thu, 14 Oct 2010 09:19:04 +0000 (+0200) Subject: configure: Support disabling warnings in $gcc_flags X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~7062 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e027be7e91d854d7a0132e4a32bdf222c33dcfe;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/configure b/configure index a079a49..5f4d718 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