Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2012 21:11:37 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r242329 - stable/9/lib/libc++
Message-ID:  <201210292111.q9TLBb4R045038@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Oct 29 21:11:37 2012
New Revision: 242329
URL: http://svn.freebsd.org/changeset/base/242329

Log:
  MFC r241909:
  
  Allow building libc++ with any custom -std=xxx flag.  Note that using
  -std=gnu++98 will give a lot of warnings with clang, so please use
  -std=c++0x or higher, or use NO_WERROR.

Modified:
  stable/9/lib/libc++/Makefile
Directory Properties:
  stable/9/lib/libc++/   (props changed)

Modified: stable/9/lib/libc++/Makefile
==============================================================================
--- stable/9/lib/libc++/Makefile	Mon Oct 29 21:08:06 2012	(r242328)
+++ stable/9/lib/libc++/Makefile	Mon Oct 29 21:11:37 2012	(r242329)
@@ -53,7 +53,9 @@ cxxrt_${_S}:
 
 WARNS=		0
 CFLAGS+=	-I${HDRDIR} -I${LIBCXXRTDIR} -nostdlib -DLIBCXXRT
+.if !defined(CXXFLAGS) || ${CXXFLAGS:M-std=*}" == ""
 CXXFLAGS+=	-std=c++0x
+.endif
 
 DPADD=		${LIBCXXRT}
 LDADD=		-lcxxrt



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