diff options
author | rene <rene@FreeBSD.org> | 2013-11-04 03:41:58 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2013-11-04 03:41:58 +0800 |
commit | 6dc6627332a45596c1744893d981cb1283c66a18 (patch) | |
tree | 9cefda8c05adc96d97565ad27bd25641a77f7291 /Mk | |
parent | e238ff253d09114c2beb3896abb3f08c39e124c6 (diff) | |
download | freebsd-ports-gnome-6dc6627332a45596c1744893d981cb1283c66a18.tar.gz freebsd-ports-gnome-6dc6627332a45596c1744893d981cb1283c66a18.tar.zst freebsd-ports-gnome-6dc6627332a45596c1744893d981cb1283c66a18.zip |
Make sure that kldxref(8) is not run when installing into the staging
directory to prevent orphaned linker.hints files.
Obtained from: Porters Handbook section 6.1
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/kmod.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk index b85513e921f7..6bffa0deacb6 100644 --- a/Mk/Uses/kmod.mk +++ b/Mk/Uses/kmod.mk @@ -26,6 +26,9 @@ SSP_UNSAFE= kernel module does not support SSP KMODDIR?= /boot/modules PLIST_SUB+= KMODDIR="${KMODDIR:C,^/,,}" MAKE_ENV+= KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" +.if !defined(NO_STAGE) +MAKE_ENV+= NO_XREF=yes +.endif pre-install: kmod-pre-install kmod-pre-install: |