summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMiroslav Rezanina2022-03-05 07:16:46 +0100
committerCédric Le Goater2022-03-05 07:16:46 +0100
commitced5cfffeea22ef9003c95a83ce7c31e428702fb (patch)
tree2f20a3faf4a5b9cb61e998c760d741eb66c97391 /configure
parentMerge remote-tracking branch 'remotes/nvme/tags/nvme-next-pull-request' into ... (diff)
downloadqemu-ced5cfffeea22ef9003c95a83ce7c31e428702fb.tar.gz
qemu-ced5cfffeea22ef9003c95a83ce7c31e428702fb.tar.xz
qemu-ced5cfffeea22ef9003c95a83ce7c31e428702fb.zip
Use long endian options for ppc64
GCC options pairs -mlittle/-mlittle-endian and -mbig/-mbig-endian are equivalent on ppc64 architecture. However, Clang supports only long version of the options. Use longer form in configure to properly support both GCC and Clang compiler. In addition, fix this issue in tcg test configure. Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <20220131091714.4825-1-mrezanin@redhat.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index c56ed53ee3..81618708e4 100755
--- a/configure
+++ b/configure
@@ -630,10 +630,10 @@ case "$cpu" in
ppc)
CPU_CFLAGS="-m32" ;;
ppc64)
- CPU_CFLAGS="-m64 -mbig" ;;
+ CPU_CFLAGS="-m64 -mbig-endian" ;;
ppc64le)
cpu="ppc64"
- CPU_CFLAGS="-m64 -mlittle" ;;
+ CPU_CFLAGS="-m64 -mlittle-endian" ;;
s390)
CPU_CFLAGS="-m31" ;;