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=*}
 
 DPSRCS+= ${SRCS}
 ${DEPENDFILE}: ${DPSRCS}
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to