]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: -march=i486 belongs in QEMU_CFLAGS, not CFLAGS
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 18 Jul 2012 14:10:22 +0000 (15:10 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 31 Jul 2012 20:05:40 +0000 (20:05 +0000)
The distinction between QEMU_CFLAGS and CFLAGS is that the
former is for flags without which QEMU can't compile, whereas
the latter is for flags like "-g -O2" which the user can
safely override. "-march=i486" is in the former category, and
so belongs in QEMU_CFLAGS.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index f74bf0f04ff68911706527c5affd59117b7636bf..ab17b404a70301fdcffdc147f68fb7ce4eb569c0 100755 (executable)
--- a/configure
+++ b/configure
@@ -2812,7 +2812,7 @@ int main(int argc, char **argv)
 }
 EOF
   if ! compile_prog "" "" ; then
-    CFLAGS="-march=i486 $CFLAGS"
+    QEMU_CFLAGS="-march=i486 $QEMU_CFLAGS"
   fi
 fi