mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
Allow MIPS lib32 to build with clang.
Don't try to set -march as clang doesn't permit use of the O32 ABI with newer CPU microarchitectures like 'mips3'. In addition, clang doesn't permit the O32 ABI with the default N64 target, so use an explicit O32 -target for clang. Sponsored by: DARPA / AFRL
This commit is contained in:
parent
d162bbc1d3
commit
8d286bb992
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327841
@ -35,11 +35,20 @@ LIB32WMAKEFLAGS= \
|
||||
OBJCOPY="${XOBJCOPY}"
|
||||
|
||||
.elif ${TARGET_ARCH:Mmips64*} != ""
|
||||
.if ${WANT_COMPILER_TYPE} == clang || \
|
||||
(defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == clang)
|
||||
.if ${TARGET_ARCH:Mmips64el*} != ""
|
||||
LIB32CPUFLAGS= -target mipsel-unknown-freebsd12.0
|
||||
.else
|
||||
LIB32CPUFLAGS= -target mips-unknown-freebsd12.0
|
||||
.endif
|
||||
.else
|
||||
.if empty(TARGET_CPUTYPE)
|
||||
LIB32CPUFLAGS= -march=mips3
|
||||
.else
|
||||
LIB32CPUFLAGS= -march=${TARGET_CPUTYPE}
|
||||
.endif
|
||||
.endif
|
||||
LIB32CPUFLAGS+= -mabi=32
|
||||
LIB32WMAKEENV= MACHINE=mips MACHINE_ARCH=mips
|
||||
.if ${TARGET_ARCH:Mmips64el*} != ""
|
||||
|
Loading…
Reference in New Issue
Block a user