From owner-svn-src-all@FreeBSD.ORG Wed May 7 18:15:03 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB551969; Wed, 7 May 2014 18:15:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 AF4CCAB5; Wed, 7 May 2014 18:15:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s47IF3Ee010962; Wed, 7 May 2014 18:15:03 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s47IF3t1010953; Wed, 7 May 2014 18:15:03 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201405071815.s47IF3t1010953@svn.freebsd.org> From: Warner Losh Date: Wed, 7 May 2014 18:15:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265581 - in 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-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 18:15:03 -0000 Author: imp Date: Wed May 7 18:15:02 2014 New Revision: 265581 URL: http://svnweb.freebsd.org/changeset/base/265581 Log: bsd.compiler.mk was implicitly included by bsd.own.mk in historical versions. With its movement to src.opts.mk, bsd.prog.mk was testing COMPILER_TYPE without including the bsd.compiler.mk anymore. In the source tree, this caused no problems, for reasons that aren't clear, but does cause problems outside of the source tree. Allow bsd.compiler.mk to be included multiple times safely, and always include bsd.compiler.mk at the top of bsd.prog.mk. Resist the urge to put it in bsd.init.mk, since that would reintroduce the implicit include. Modified: head/UPDATING head/share/mk/bsd.compiler.mk head/share/mk/bsd.prog.mk Modified: head/UPDATING ============================================================================== --- head/UPDATING Wed May 7 18:14:56 2014 (r265580) +++ head/UPDATING Wed May 7 18:15:02 2014 (r265581) @@ -44,6 +44,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11 temporary breakage was fixed with MAKESYSPATH settings for buildworld as well... + One side effect of all this cleaning up is that bsd.compiler.mk + is no longer implicitly included by bsd.own.mk. If you wish to + use COMPILER_TYPE, you must now explicitly include bsd.compiler.mk + as well. + 20140430: The lindev device has been removed since /dev/full has been made a standard device. __FreeBSD_version has been bumped. Modified: head/share/mk/bsd.compiler.mk ============================================================================== --- head/share/mk/bsd.compiler.mk Wed May 7 18:14:56 2014 (r265580) +++ head/share/mk/bsd.compiler.mk Wed May 7 18:15:02 2014 (r265581) @@ -1,5 +1,8 @@ # $FreeBSD$ +.if !target(____) +____: + .if !defined(COMPILER_TYPE) . if ${CC:T:Mgcc*} COMPILER_TYPE:= gcc @@ -25,3 +28,5 @@ COMPILER_FEATURES= c++11 .else COMPILER_FEATURES= .endif + +.endif # !target(____) Modified: head/share/mk/bsd.prog.mk ============================================================================== --- head/share/mk/bsd.prog.mk Wed May 7 18:14:56 2014 (r265580) +++ head/share/mk/bsd.prog.mk Wed May 7 18:15:02 2014 (r265581) @@ -2,6 +2,7 @@ # $FreeBSD$ .include +.include .SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm