summaryrefslogtreecommitdiffstats
path: root/share/mk/sys.mk
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2015-08-14 22:54:52 +0000
committerrpaulo <rpaulo@FreeBSD.org>2015-08-14 22:54:52 +0000
commit2c035421f750b66572ec76e85842653095333e2d (patch)
treeda9eb12aa8599fe5229b3c01c1696ba18b7c2b35 /share/mk/sys.mk
parent6ee70894f043b42c41f8335e2106a951a38bd4ae (diff)
downloadFreeBSD-src-2c035421f750b66572ec76e85842653095333e2d.zip
FreeBSD-src-2c035421f750b66572ec76e85842653095333e2d.tar.gz
Introduce a new make variable: NMFLAGS.
As the name indicates, these are flags to pass to nm(1). The newer binutils have a plugin mechanism so, to build something with LLVM's LTO, we need to pass flags to nm(1). This commit also extends lorder(1) to pass NMFLAGS to nm(1).
Diffstat (limited to 'share/mk/sys.mk')
-rw-r--r--share/mk/sys.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index d23d1d7..99e0337 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -167,6 +167,7 @@ MAKE ?= make
.if !defined(%POSIX)
NM ?= nm
+NMFLAGS ?=
OBJC ?= cc
OBJCFLAGS ?= ${OBJCINCLUDES} ${CFLAGS} -Wno-import
OpenPOWER on IntegriCloud