Date: Fri, 11 Dec 2015 22:55:41 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292125 - head/share/mk Message-ID: <201512112255.tBBMtfXN037275@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512112255.tBBMtfXN037275>