Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 20:00:50 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273406 - head/share/mk
Message-ID:  <201410212000.s9LK0oQn061585@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>__)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410212000.s9LK0oQn061585>