configure: Use -mlittle-endian instead of -mlittle for ppc64
PATCH 1/1 configure: Use -mlittle-endian instead of -mlittle for ppc64
From: Miroslav Rezanina <[email protected]>
GCC options -mlittle and -mlittle-endian are equivalent on ppc64 architecture. However, clang supports only -mlittle-endian option.
Use longer form in configure to properly support both GCC and clang compiler.
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -658,7 +658,7 @@ case "$cpu" in CPU_CFLAGS="-m64 -mbig" ;; ppc64le) cpu="ppc64" - CPU_CFLAGS="-m64 -mlittle" ;; + CPU_CFLAGS="-m64 -mlittle-endian" ;; s390) CPU_CFLAGS="-m31" ;;
Signature · 1 line
2.27.0
Quoted 18 lines · On 1/19/22 10:56, [email protected] wrote:
From: Miroslav Rezanina <[email protected]>
GCC options -mlittle and -mlittle-endian are equivalent on ppc64 architecture. However, clang supports only -mlittle-endian option.
Use longer form in configure to properly support both GCC and clang compiler.
Signed-off-by Miroslav Rezanina <[email protected]>--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configure +0
-0
configure case "$cpu" in · line 664
Quoted 8 lines
configure +1
-1@@ -658,7 +658,7 @@ case "$cpu" in CPU_CFLAGS="-m64 -mbig" ;; ppc64le) cpu="ppc64" - CPU_CFLAGS="-m64 -mlittle" ;; + CPU_CFLAGS="-m64 -mlittle-endian" ;; s390) CPU_CFLAGS="-m31" ;;
Does -mbig need the same one line above?
Paolo
Quoted 14 lines · Paolo Bonzini
Quoted 13 lines · On 1/19/22 10:56, [email protected] wrote:
From: Miroslav Rezanina <[email protected]>
GCC options -mlittle and -mlittle-endian are equivalent on ppc64 architecture. However, clang supports only -mlittle-endian option.
Use longer form in configure to properly support both GCC and clang compiler.
Signed-off-by Miroslav Rezanina <[email protected]>---
configure | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
Quoted 7 lines
configure +0
-0@@ -658,7 +658,7 @@ case "$cpu" in CPU_CFLAGS="-m64 -mbig" ;; ppc64le)Quoted 5 lines
cpu="ppc64"
- CPU_CFLAGS="-m64 -mlittle" ;;
+ CPU_CFLAGS="-m64 -mlittle-endian" ;;
s390)
CPU_CFLAGS="-m31" ;;Does -mbig need the same one line above?
Yes, and tests/tcg/configure.sh needs that change too.