From owner-freebsd-current@FreeBSD.ORG Wed Feb 29 20:33:18 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id C39231065670; Wed, 29 Feb 2012 20:33:18 +0000 (UTC) Date: Wed, 29 Feb 2012 20:33:18 +0000 From: Alexander Best To: Chuck Burns Message-ID: <20120229203318.GA88216@freebsd.org> References: <20120226213703.GA33988@freebsd.org> <4F4D34C8.9080507@FreeBSD.org> <20120228221149.GA95661@freebsd.org> <4F4D5B63.6020306@FreeBSD.org> <4F4D6C7D.3030109@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F4D6C7D.3030109@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: setting CC/CXX/CPP unconditionally in src.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 20:33:18 -0000 On Tue Feb 28 12, Chuck Burns wrote: > On 2/28/2012 4:55 PM, Ade Lovett wrote: > >On 2/28/2012 14:11, Alexander Best wrote: > >>any chance we can have a CFLAGS.gcc and CFLAGS.clang in the future? > >>that would > >>make certain things a lot easier. dealing with gcc specific options, > >>such as > >>-mpreferred-stack-boundary=2 would simply work by setting > >>CFLAGS.gcc=-mpreferred-stack-boundary=2 e.g. > > > >You already can: > > > >CFLAGS.cc= cc_cflags_here > >CFLAGS.clang= clang_cflags_here > > > >CFLAGS+= generic_cflags_here > >CFLAGS+= ${CFLAGS.${CC}} > > > > > >-aDe > > I think was asking for adding a third... > .cc for base gcc > .clang for .. clang...... > and .gcc for ports gcc4x > .. > > At least, thats how I read it, I could be wrong, it's happened before. no you're right. ade's example suits users very well who want to use it in their src.conf. however what i had in mind was something that can be put into the makefiles by developers and which is implemented in *.mk mannor. cheers. alex > > Chuck >