Author: bdrewery
Date: Fri Dec 11 22:55:41 2015
New Revision: 292125
URL: https://svnweb.freebsd.org/changeset/base/292125

Log:
  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

Modified:
  head/share/mk/local.dirdeps.mk

Modified: head/share/mk/local.dirdeps.mk
==============================================================================
--- head/share/mk/local.dirdeps.mk      Fri Dec 11 22:55:23 2015        
(r292124)
+++ head/share/mk/local.dirdeps.mk      Fri Dec 11 22:55:41 2015        
(r292125)
@@ -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/libs
 .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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to