summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-12-11 22:55:41 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-12-11 22:55:41 +0000
commit84dd1223056f387088513199e726c3804096d36b (patch)
treed41c8ff623cbbb47a8ef31208a5b8a3e0425cf60 /share
parente10e8212ee93ce83ca450cc277687c96a828f398 (diff)
downloadFreeBSD-src-84dd1223056f387088513199e726c3804096d36b.zip
FreeBSD-src-84dd1223056f387088513199e726c3804096d36b.tar.gz
DIRDEPS_BUILD: Don't force C dependencies on kernel modules for bootstrapping.
These use ld(1), effectively -nostdlib, and don't need any of these normal dependencies. kmod builds also define PROG so just checking for KMOD here seems to be the easiest to handle it. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share')
-rw-r--r--share/mk/local.dirdeps.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/local.dirdeps.mk b/share/mk/local.dirdeps.mk
index a24d012..3e08830 100644
--- a/share/mk/local.dirdeps.mk
+++ b/share/mk/local.dirdeps.mk
@@ -97,6 +97,8 @@ _have_depfile=
.endif
.endfor
.if !defined(_have_depfile)
+# KMOD does not use any stdlibs.
+.if !defined(KMOD)
# Has C files. The C_DIRDEPS are shared with C++ files as well.
C_DIRDEPS= \
gnu/lib/csu \
@@ -121,7 +123,8 @@ DIRDEPS+= gnu/lib/libstdc++ gnu/lib/libsupc++
.endif
# XXX: Clang and GCC always adds -lm currently, even when not needed.
DIRDEPS+= lib/msun
-.endif
+.endif # CXX
+.endif # !defined(KMOD)
# Has yacc files.
.if !empty(SRCS:M*.y)
DIRDEPS+= usr.bin/yacc.host
OpenPOWER on IntegriCloud