xcompile: x86-64-elf wants -Wa,--divide, too
Change-Id: I03eb1c0f1e0b0c6213ec6b26cf41dadd4df9b910 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10574 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
parent
dbe6ba465e
commit
7979dc09a8
|
@ -153,6 +153,12 @@ detect_special_flags() {
|
|||
# specify -mmsse, etc flags.
|
||||
CFLAGS_GCC="$CFLAGS_GCC -march=i686"
|
||||
;;
|
||||
x64)
|
||||
testcc "$GCC" "$CFLAGS_GCC -Wa,--divide" &&
|
||||
CFLAGS_GCC="$CFLAGS_GCC -Wa,--divide"
|
||||
testcc "$CLANG" "$CFLAGS_CLANG -Wa,--divide" &&
|
||||
CFLAGS_CLANG="$CFLAGS_CLANG -Wa,--divide"
|
||||
;;
|
||||
mipsel)
|
||||
testcc "$GCC" "$CFLAGS_GCC -mno-abicalls -fno-pic" && \
|
||||
CFLAGS_GCC+=" -mno-abicalls -fno-pic"
|
||||
|
|
Loading…
Reference in New Issue