diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-04-18 14:46:14 +1000 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2013-04-18 13:50:53 +0200 |
commit | 79f3b12f7072d592dcddfe71dd846eab3be310ea (patch) | |
tree | 55483282bf736dae1eb9f95ec582e0366e685a57 /configure | |
parent | 1773d9ee6e7138e3956081670215e8bc0ae14828 (diff) | |
download | qemu-79f3b12f7072d592dcddfe71dd846eab3be310ea.zip qemu-79f3b12f7072d592dcddfe71dd846eab3be310ea.tar.gz qemu-79f3b12f7072d592dcddfe71dd846eab3be310ea.tar.bz2 |
configure: Put cross compile flags in EXTRA_CFLAGS
The cross compile CFLAGS are needed to properly build pixman (and any other
submodules). Only the EXTRA_CFLAGS set is passed to submodules not QEMU_CFLAGS,
so put the cross compile flags in EXTRA_CFLAGS instead.
Signed-off-by: Peter Crosthwaite peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -941,33 +941,36 @@ done case "$cpu" in sparc) LDFLAGS="-m32 $LDFLAGS" - QEMU_CFLAGS="-m32 -mcpu=ultrasparc $QEMU_CFLAGS" + CPU_CFLAGS="-m32 -mcpu=ultrasparc" ;; sparc64) LDFLAGS="-m64 $LDFLAGS" - QEMU_CFLAGS="-m64 -mcpu=ultrasparc $QEMU_CFLAGS" + CPU_CFLAGS="-m64 -mcpu=ultrasparc" ;; s390) - QEMU_CFLAGS="-m31 -march=z990 $QEMU_CFLAGS" + CPU_CFLAGS="-m31 -march=z990" LDFLAGS="-m31 $LDFLAGS" ;; s390x) - QEMU_CFLAGS="-m64 -march=z990 $QEMU_CFLAGS" + CPU_CFLAGS="-m64 -march=z990" LDFLAGS="-m64 $LDFLAGS" ;; i386) - QEMU_CFLAGS="-m32 $QEMU_CFLAGS" + CPU_CFLAGS="-m32" LDFLAGS="-m32 $LDFLAGS" cc_i386='$(CC) -m32' ;; x86_64) - QEMU_CFLAGS="-m64 $QEMU_CFLAGS" + CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" cc_i386='$(CC) -m32' ;; # No special flags required for other host CPUs esac +QEMU_CFLAGS="$CPU_CFLAGS $QEMU_CFLAGS" +EXTRA_CFLAGS="$CPU_CFLAGS $EXTRA_CFLAGS" + default_target_list="" # these targets are portable |