From owner-svn-src-head@freebsd.org Fri Dec 11 22:55:43 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 09AFEA0405A; Fri, 11 Dec 2015 22:55:43 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D09611161; Fri, 11 Dec 2015 22:55:42 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBBMtfeO037276; Fri, 11 Dec 2015 22:55:41 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBBMtfXN037275; Fri, 11 Dec 2015 22:55:41 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201512112255.tBBMtfXN037275@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Fri, 11 Dec 2015 22:55:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292125 - head/share/mk X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2015 22:55:43 -0000 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