svn commit: r273406 - head/share/mk

Baptiste Daroussin bapt at FreeBSD.org
Tue Oct 21 20:00:50 UTC 2014


Author: bapt
Date: Tue Oct 21 20:00:49 2014
New Revision: 273406
URL: https://svnweb.freebsd.org/changeset/base/273406

Log:
  Always use libc++ as the default c++ stack when building with an external gcc 4.8+
  While here disable building gcc from base when using gcc 4.8+
  
  Reviewed by:	imp

Modified:
  head/share/mk/src.opts.mk

Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk	Tue Oct 21 19:58:23 2014	(r273405)
+++ head/share/mk/src.opts.mk	Tue Oct 21 20:00:49 2014	(r273406)
@@ -358,4 +358,12 @@ MK_${vv:H}:=	${MK_${vv:T}}
 MK_LLDB:=	no
 .endif
 
+# gcc 4.8 and newer supports libc++, so suppress gnuc++ in that case.
+# while in theory we could build it with that, we don't want to do
+# that since it creates too much confusion for too little gain.
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 40800
+MK_GNUCXX:=no
+MK_GCC:=no
 .endif
+
+.endif #  !target(__<src.opts.mk>__)


More information about the svn-src-all mailing list