pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Solaris SunPro Compiler 11/12 fails on Sol...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/29752a589e07
branches:  trunk
changeset: 535943:29752a589e07
user:      rhaen <rhaen%pkgsrc.org@localhost>
date:      Fri Nov 30 16:55:28 2007 +0000

description:
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

diffstat:

 mk/compiler/sunpro.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 506c2526d41e -r 29752a589e07 mk/compiler/sunpro.mk
--- a/mk/compiler/sunpro.mk     Fri Nov 30 16:20:45 2007 +0000
+++ b/mk/compiler/sunpro.mk     Fri Nov 30 16:55:28 2007 +0000
@@ -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 @@
 
 # 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.



Home | Main Index | Thread Index | Old Index