clang: use -mxgot for 32-bit mips
Various bits in usr.bin/clang/* will fail to compile without -mxgot due to truncated relocations. -mxgot entails a speed penalty, but I suspect we don't care as much about compiler performance in 32-bit mips land. Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D21698
This commit is contained in:
parent
50118a85ed
commit
5efcaf598b
@ -12,4 +12,9 @@ DEBUG_FILES_CFLAGS= -gline-tables-only
|
||||
DEBUG_FILES_CFLAGS= -g1
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH:Mmips*} && ${MACHINE_ARCH:Mmips64*} == ""
|
||||
CFLAGS+= -mxgot
|
||||
CXXFLAGS+= -mxgot
|
||||
.endif
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
Loading…
Reference in New Issue
Block a user