mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
4f68b172e1
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
21 lines
336 B
Makefile
21 lines
336 B
Makefile
# $FreeBSD$
|
|
|
|
WARNS?= 0
|
|
|
|
.include <bsd.compiler.mk>
|
|
|
|
MK_PIE:= no # Explicit libXXX.a references
|
|
|
|
.if ${COMPILER_TYPE} == "clang"
|
|
DEBUG_FILES_CFLAGS= -gline-tables-only
|
|
.else
|
|
DEBUG_FILES_CFLAGS= -g1
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH:Mmips*} && ${MACHINE_ARCH:Mmips64*} == ""
|
|
CFLAGS+= -mxgot
|
|
CXXFLAGS+= -mxgot
|
|
.endif
|
|
|
|
.include "../Makefile.inc"
|