xcompile: actually use "special compile flags" idea
xcompile used to test for special ARM flags - that were empty. Meanwhile, -Wa,--divide, which is only useful on i386-elf was tested for on arm and aarch64, too Change-Id: I1a5a1bc40fa1040d0939038b073aef31c72d0c6f Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5743 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
004295d86d
commit
ee46712da0
|
@ -125,21 +125,15 @@ detect_special_flags() {
|
|||
testcc "$CC" "$CFLAGS -fuse-ld=bfd" &&
|
||||
CFLAGS="$CFLAGS -fuse-ld=bfd" && LINKER_SUFFIX='.bfd'
|
||||
|
||||
testcc "$CC" "$CFLAGS -Wa,--divide" &&
|
||||
CFLAGS="$CFLAGS -Wa,--divide"
|
||||
testcc "$CC" "$CFLAGS -fno-stack-protector"&&
|
||||
CFLAGS="$CFLAGS -fno-stack-protector"
|
||||
testcc "$CC" "$CFLAGS -Wl,--build-id=none" &&
|
||||
CFLAGS="$CFLAGS -Wl,--build-id=none"
|
||||
|
||||
case "$architecture" in
|
||||
armv7 )
|
||||
ARMFLAGS=""
|
||||
testcc "$CC" "$CFLAGS $ARMFLAGS"&&CFLAGS="$CFLAGS $ARMFLAGS"
|
||||
;;
|
||||
aarch64 )
|
||||
ARMFLAGS=""
|
||||
testcc "$CC" "$CFLAGS $ARMFLAGS"&&CFLAGS="$CFLAGS $ARMFLAGS"
|
||||
x86)
|
||||
testcc "$CC" "$CFLAGS -Wa,--divide" &&
|
||||
CFLAGS="$CFLAGS -Wa,--divide"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue