Set endianness and floating point flags explicitly for MIPS targets
The tree can be build with an external toolchain that will not necessarily default to desired settings, so we have to specify the required flags explicitly to force the required compilation mode. Reviewed by: adrian, br Sponsored by: https://reviews.freebsd.org/D8505
This commit is contained in:
parent
85552e2171
commit
19df6187d2
@ -303,9 +303,22 @@ MACHINE_CPU = v9 ultrasparc ultrasparc3
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "mips"
|
||||
CFLAGS += -G0
|
||||
.if ${MACHINE_ARCH:Mmips*hf}
|
||||
. if ${MACHINE_ARCH:Mmips*el*} != ""
|
||||
ACFLAGS += -EL
|
||||
AFLAGS += -EL
|
||||
CFLAGS += -EL
|
||||
LDFLAGS += -EL
|
||||
. else
|
||||
ACFLAGS += -EB
|
||||
AFLAGS += -EB
|
||||
CFLAGS += -EB
|
||||
LDFLAGS += -EB
|
||||
. endif
|
||||
. if ${MACHINE_ARCH:Mmips*hf}
|
||||
CFLAGS += -mhard-float
|
||||
.endif
|
||||
. else
|
||||
CFLAGS += -msoft-float
|
||||
. endif
|
||||
.endif
|
||||
|
||||
########## arm
|
||||
|
Loading…
x
Reference in New Issue
Block a user