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>__)
_______________________________________________
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