mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-09 04:14:20 +00:00
Export endianness CFLAGS.
Fix endianness CFLAGS for MIPS. /trunk/scripts/functions | 1 1 0 0 + /trunk/arch/mips/functions | 6 6 0 0 ++++++ 2 files changed, 7 insertions(+)
This commit is contained in:
parent
c15c2e6978
commit
0dad6065a6
@ -3,4 +3,10 @@
|
||||
CT_DoArchValues() {
|
||||
# The architecture part of the tuple:
|
||||
CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
|
||||
|
||||
# Override CFLAGS for endianness:
|
||||
case "${CT_ARCH_BE},${CT_ARCH_LE}" in
|
||||
y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
|
||||
,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
|
||||
esac
|
||||
}
|
||||
|
@ -542,6 +542,7 @@ CT_DoBuildTargetTuple() {
|
||||
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_TUNE_CFLAG}"
|
||||
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_FPU_CFLAG}"
|
||||
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_FLOAT_CFLAG}"
|
||||
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ENDIAN_CFLAG}"
|
||||
}
|
||||
|
||||
# This function does pause the build until the user strikes "Return"
|
||||
|
Loading…
x
Reference in New Issue
Block a user