diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2019-10-02 17:15:38 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2019-10-02 17:15:38 +0000 |
commit | 4f68b172e160e4cecb62be805c6cdc04d61eec8d (patch) | |
tree | 36d16fabcbcb8cd4ea1655b969beaad51258f7f5 | |
parent | 55c4535d81f44a021d7d4e4db577b4d0feb9728c (diff) | |
download | src-4f68b172e160e4cecb62be805c6cdc04d61eec8d.tar.gz src-4f68b172e160e4cecb62be805c6cdc04d61eec8d.zip |
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
Notes
Notes:
svn path=/head/; revision=353018
-rw-r--r-- | usr.bin/clang/Makefile.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index ba32f0c1032d..a257b795b7af 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -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" |