From owner-freebsd-ports@FreeBSD.ORG Thu Dec 15 20:46:07 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6892106564A for ; Thu, 15 Dec 2011 20:46:07 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id B925A8FC08 for ; Thu, 15 Dec 2011 20:46:07 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=imac.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1RbIBk-0009k4-2z; Thu, 15 Dec 2011 15:46:02 -0500 Received: from imac.entropy.prv (localhost [127.0.0.1]) by imac.entropy.prv (Postfix) with ESMTP id 057A9CDC4DC; Thu, 15 Dec 2011 15:45:58 -0500 (EST) Message-ID: <4EEA5C86.7070107@FreeBSD.org> Date: Thu, 15 Dec 2011 15:45:58 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.24) Gecko/20111103 Lightning/1.0b2 Thunderbird/3.1.16 MIME-Version: 1.0 To: bf1783@gmail.com References: In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-ports@freebsd.org, "b. f." , "Andrew W. Nosenko" Subject: Re: Building ports with gcc46 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 20:46:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/15/11 9:37 AM, b. f. wrote: > On 12/15/11, Andrew W. Nosenko wrote: >> On Thu, Dec 15, 2011 at 02:05, b. f. wrote: >>> If you are interested in applying them to a single port, use a test on >>> .CURDIR, >>> or, better yet, add the statement to any of the optional Makefiles that >>> are >>> automatically included by bsd.port.mk and were intended for that purpose >>> -- >>> ${MASTERDIR}/Makefile.local, for example. >> >> Unfortunatelly, the Makefile.local included too late for have any >> positive/intended effect (e.g. define port-specific WITH/WITHOUT knob, >> modify CONFIGURE_ARGS,...) in many cases/ports. Therefore, advise to >> use Makefile.local is unreliable. And we left in situation, where >> make.conf is the only one reasonable working solution :-( > > Certainly Makefile.local is not included as early as make.conf, and so > may not be used for every purpose for which make.conf may be used. > But with regard to the topic of this thread, Makefile.local is > included before options-handling, and the test for inclusion of > bsd.gcc.mk. Why did you think otherwise? Using Makefile.local is > generally safer because of its narrower scope, and because it cannot > be included multiple times if make(1) is invoked recursively, unlike > make.conf. > > b. Hi everyone, Thank you for the correction to placement of the USE_GCC directive. Clearly, I went for the "hammer" solution a little too quickly! Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7qXIYACgkQ0sRouByUApAruACfbbesKuJBXybzJamMxFwm18tE cfkAnA2VsTCB+VfChcWd3mHf+/mgibf8 =aKXZ -----END PGP SIGNATURE-----