svn commit: r226216 - head/share/mk

Roman Divacky rdivacky at freebsd.org
Mon Oct 10 17:52:12 UTC 2011


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


More information about the svn-src-all mailing list