summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-01-15 10:08:18 +0000
committertnn <tnn@pkgsrc.org>2008-01-15 10:08:18 +0000
commitddfd4115444cbce992363c7319b9a912b80bf16d (patch)
treee49b2c92f22e30e1f2f69262fd7b49fb365e7336 /mk/compiler
parent00864c5c6c86b7aceff68c854ac985c3974eafa3 (diff)
downloadpkgsrc-ddfd4115444cbce992363c7319b9a912b80bf16d.tar.gz
Always tell the C++ compiler that we want support for ANSI C++ features
like namespace std enabled.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/hp.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/compiler/hp.mk b/mk/compiler/hp.mk
index afa7aa3e622..7d5e0eeb46c 100644
--- a/mk/compiler/hp.mk
+++ b/mk/compiler/hp.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hp.mk,v 1.3 2007/05/28 11:07:00 martti Exp $
+# $NetBSD: hp.mk,v 1.4 2008/01/15 10:08:18 tnn Exp $
#
# This is the compiler definition for the HP-UX C/aC++ compilers.
#
@@ -41,6 +41,9 @@ CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= hp
.endif
+# Turn ANSI C++ features like namespace std, STL and correct scoping
+_WRAP_EXTRA_ARGS.CXX+= -AA -Aa
+
# HP comilers pass flags to the linker using "-Wl,".
_COMPILER_LD_FLAG= -Wl,