summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhaen <rhaen@pkgsrc.org>2007-11-30 16:55:28 +0000
committerrhaen <rhaen@pkgsrc.org>2007-11-30 16:55:28 +0000
commit9075c9986b3cf299bb03ffb28729bf3db0108ffa (patch)
treec0a187ddadd2e378990e7d2b87fef5d0e7e1ab4c
parent52d6c4a58a4c50b13a1b23c9fbc143ba6f7793ab (diff)
downloadpkgsrc-9075c9986b3cf299bb03ffb28729bf3db0108ffa.tar.gz
Solaris SunPro Compiler 11/12 fails on Solaris 8/9 with -xc99. The header files supplied by the OS are not c99 aware, the manpage suggests the setting: -xc99=all,no_lib for Solaris 8/9.
See PR 37200
-rw-r--r--mk/compiler/sunpro.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
index 4292aee0d62..75542f50a3f 100644
--- a/mk/compiler/sunpro.mk
+++ b/mk/compiler/sunpro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.42 2007/10/05 22:09:09 rillig Exp $
+# $NetBSD: sunpro.mk,v 1.43 2007/11/30 16:55:28 rhaen Exp $
#
# This is the compiler definition for the SUNWspro C compiler.
#
@@ -51,8 +51,16 @@ PKG_${t}:= ${SUNWSPROBASE}/bin/${n}
# Turn on C99 support if required
# XXX: What if a package needs both -- a c89 and a c99 compiler?
+#
+# Solaris SunPro Compiler 11/12 fails on Solaris 8/9 with -xc99
+# The header files supplied by the OS are not c99 aware, the
+# manpage suggests the setting: -xc99=all,no_lib
+# See PR 37200
.if !empty(USE_LANGUAGES:Mc99)
_WRAP_EXTRA_ARGS.CC+= -xc99
+. if !empty(MACHINE_PLATFORM:MSunOS-5.[89]-*)
+_WRAP_EXTRA_ARGS.CC+= -xc99=all,no_lib
+. endif
.endif
# The Solaris linker uses "-R" for rpath directives.