svn commit: r326801 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Mon Sep 9 10:37:03 UTC 2013


Author: bapt
Date: Mon Sep  9 10:37:03 2013
New Revision: 326801
URL: http://svnweb.freebsd.org/changeset/ports/326801

Log:
  Introduce a new USE_CXXSTD similar to USE_CSTD to allow enforcing the C++ language standard to use when building a port

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Sep  9 10:09:26 2013	(r326800)
+++ head/Mk/bsd.port.mk	Mon Sep  9 10:37:03 2013	(r326801)
@@ -319,6 +319,7 @@ FreeBSD_MAINTAINER=	portmgr at FreeBSD.org
 # USE_GCC		- If set, this port requires this version of gcc, either in
 #				  the system or installed from a port.
 # USE_CSTD		- Override the default C language standard (gnu89, gnu99)
+# USE_CXXSTD	  Override the default C++ language standard
 # USE_BINUTILS	- Use binutils suite from port instead of the version in base.
 ##
 # USE_GHOSTSCRIPT
@@ -2128,6 +2129,10 @@ CFLAGS+=       -fno-strict-aliasing
 CFLAGS:=	${CFLAGS:N-std=*} -std=${USE_CSTD}
 .endif
 
+.if defined(USE_CXXSTD)
+CXXFLAGS:=	${CXXFLAGS:N-std=*} -std=${USE_CXXSTD}
+.endif
+
 # Multiple make jobs support
 .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
 _MAKE_JOBS=		#


More information about the svn-ports-head mailing list