From owner-freebsd-current@FreeBSD.ORG Wed Feb 29 00:22:27 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05A5F106564A for ; Wed, 29 Feb 2012 00:22:27 +0000 (UTC) (envelope-from ade@FreeBSD.org) Received: from panix.lovett.com (panix.lovett.com [166.84.7.128]) by mx1.freebsd.org (Postfix) with ESMTP id D439E8FC08 for ; Wed, 29 Feb 2012 00:22:26 +0000 (UTC) Received: from nat-dip4.cfw-a-gci.corp.yahoo.com ([209.131.62.113] helo=[10.72.180.251]) by panix.lovett.com with esmtpa (Exim 4.77 (FreeBSD)) (envelope-from ) id 1S2XJJ-0002eA-NG; Wed, 29 Feb 2012 00:22:25 +0000 Message-ID: <4F4D6FC0.4070501@FreeBSD.org> Date: Tue, 28 Feb 2012 16:22:24 -0800 From: Ade Lovett User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Chuck Burns References: <20120226213703.GA33988@freebsd.org> <4F4D34C8.9080507@FreeBSD.org> <20120228221149.GA95661@freebsd.org> <4F4D5B63.6020306@FreeBSD.org> <4F4D6C7D.3030109@gmail.com> In-Reply-To: <4F4D6C7D.3030109@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 00:22:27 -0000 On 2/28/2012 16:08, 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. CFLAGS.gcc46= CFLAGS.gcc47= ... it's entirely extensible. -aDe