From owner-svn-src-all@FreeBSD.ORG Mon Oct 10 17:52:12 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63305106566C; Mon, 10 Oct 2011 17:52:12 +0000 (UTC) (envelope-from rdivacky@vlakno.cz) Received: from vlakno.cz (vlakno.cz [46.28.110.116]) by mx1.freebsd.org (Postfix) with ESMTP id 2481A8FC0A; Mon, 10 Oct 2011 17:52:11 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id 246307F383F; Mon, 10 Oct 2011 19:43:33 +0200 (CEST) Date: Mon, 10 Oct 2011 19:43:33 +0200 From: Roman Divacky To: David Schultz Message-ID: <20111010174333.GA61528@freebsd.org> References: <201110101539.p9AFdTeW067945@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201110101539.p9AFdTeW067945@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r226216 - head/share/mk X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 10 Oct 2011 17:52:12 -0000 On Mon, Oct 10, 2011 at 03:39:29PM +0000, David Schultz wrote: > Author: das > Date: Mon Oct 10 15:39:29 2011 > New Revision: 226216 > URL: http://svn.freebsd.org/changeset/base/226216 > > Log: > Pass -std= flags in CFLAGS to mkdep. Without this, preprocessor tests > for particular compiler features might be evaluated differently by > mkdep than they would be by cc. > > Modified: > head/share/mk/bsd.dep.mk > > Modified: head/share/mk/bsd.dep.mk > ============================================================================== > --- head/share/mk/bsd.dep.mk Mon Oct 10 14:48:18 2011 (r226215) > +++ head/share/mk/bsd.dep.mk Mon Oct 10 15:39:29 2011 (r226216) > @@ -125,8 +125,8 @@ depend: beforedepend ${DEPENDFILE} after > > # Different types of sources are compiled with slightly different flags. > # Split up the sources, and filter out headers and non-applicable flags. > -MKDEP_CFLAGS= ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BIDU]*} > -MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} > +MKDEP_CFLAGS= ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BIDU]*} ${CFLAGS:M-std=*} > +MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} ${CFLAGS:M-std=*} So we are passing the -std from CFLAGS to CXXFLAGS now? ie. something like c++ -std=gnu99 ? roman