From owner-cvs-all Thu Feb 22 8:24:46 2001 Delivered-To: cvs-all@freebsd.org Received: from VL-MS-MR001.sc1.videotron.ca (relais.videotron.ca [24.201.245.36]) by hub.freebsd.org (Postfix) with ESMTP id A1E5337B684; Thu, 22 Feb 2001 08:24:41 -0800 (PST) (envelope-from patrick@netzuno.com) Received: from jacuzzi ([24.200.106.26]) by VL-MS-MR001.sc1.videotron.ca (Netscape Messaging Server 4.15) with ESMTP id G962X404.W3N; Thu, 22 Feb 2001 11:24:40 -0500 Received: from cognac (cognac.local.mindstep.com [192.168.10.4]) by jacuzzi (Postfix) with SMTP id 3AAA93D83; Thu, 22 Feb 2001 11:24:10 -0500 (EST) From: "Patrick Bihan-Faou" To: Cc: Subject: Re: cvs commit: src/share/mk Makefile Date: Thu, 22 Feb 2001 11:25:58 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > * If NO_CPU_CFLAGS is not defined, add relevant gcc compiler optimization > settings by default (e.g. -karch=k6 for CPUTYPE=k6, etc). Release > builders and developers of third-party software need to make sure not to > enable CPU-specific optimization when generating code intended to be > portable. We probably need to move to an /etc/world.conf to allow the > optimization stuff to be applied separately to world/kernel and external > compilations, but it's not any worse a problem than it was before. With that respect, I have implemented a quick patch to "sys.mk" which lets me specify the location of the "make.conf" file. This is really usefull to maintain several sets of make flags depending on what I intend to do. The feature is simply activated by setting the environment variable "MAKE_CONF" to the path of the file I want to use. I am using this to do buildworlds for different machines that require different set of options on one single system. Anyway, this is really usefull to me, so it might be useful for other people as well (especially now with the CPU specific stuff). This patch is against the RELENG_4 version of sys.mk. Patrick. root@nitro# more patches/share/mk/sys.mk.patch --- sys.mk.orig +++ sys.mk @@ -236,6 +236,16 @@ .endif +.if defined(MAKE_CONF) + +.if exists(${MAKE_CONF}) +.include "${MAKE_CONF}" +.else +.error Error: alternate make.conf file specified (${MAKE_CONF}) but file is not available +.endif + +.else + .if exists(/etc/defaults/make.conf) .include .endif @@ -249,5 +259,6 @@ .include .endif +.endif .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message