pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk mk/compiler.mk: Support gnu++03 and c++03 in USE_LA...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a0ab7e340801
branches: trunk
changeset: 374605:a0ab7e340801
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Jan 26 13:14:35 2018 +0000
description:
mk/compiler.mk: Support gnu++03 and c++03 in USE_LANGUAGES.
These can be used by packages when building with a compiler which defaults
to a newer standard than the source supports (e.g. namespace issues).
diffstat:
mk/compiler.mk | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 037d33679af7 -r a0ab7e340801 mk/compiler.mk
--- a/mk/compiler.mk Fri Jan 26 12:45:59 2018 +0000
+++ b/mk/compiler.mk Fri Jan 26 13:14:35 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.87 2017/07/04 14:35:55 gdt Exp $
+# $NetBSD: compiler.mk,v 1.88 2018/01/26 13:14:35 jperkin Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -45,9 +45,9 @@
# This is used to determine the correct compilers to make
# visible to the build environment, installing them if
# necessary. Flags such as --std=c++99 are also added.
-# Valid values are: c, c99, c++, c++0x, gnu++0x, c++11, gnu++11,
-# c++14, gnu++14, fortran, fortran77, java, objc, obj-c++, and
-# ada. The default is "c".
+# Valid values are: c, c99, c++, c++03, gnu++03, c++0x, gnu++0x,
+# c++11, gnu++11, c++14, gnu++14, fortran, fortran77, java, objc,
+# obj-c++, and ada. The default is "c".
#
# The above is partly aspirational. As an example c++11 does
# not force a new enough version of gcc.
@@ -84,7 +84,7 @@
USE_LANGUAGES+= c
.endif
-.for _version_ in gnu++14 c++14 gnu++11 c++11 gnu++0x c++0x
+.for _version_ in gnu++14 c++14 gnu++11 c++11 gnu++0x c++0x gnu++03 c++03
. if !empty(USE_LANGUAGES:M${_version_})
USE_LANGUAGES+= c++
. endif
@@ -178,7 +178,7 @@
# the respective mk/compiler/*.mk files.
#
_CXX_VERSION_REQD=
-.for _version_ in gnu++14 c++14 gnu++11 c++11 gnu++0x c++0x
+.for _version_ in gnu++14 c++14 gnu++11 c++11 gnu++0x c++0x gnu++03 c++03
. if empty(_CXX_VERSION_REQD) && !empty(USE_LANGUAGES:M${_version_})
_CXX_VERSION_REQD= ${_version_}
_WRAP_EXTRA_ARGS.CXX+= -std=${_CXX_VERSION_REQD}
Home |
Main Index |
Thread Index |
Old Index