diff options
author | rhaen <rhaen> | 2007-11-30 16:55:28 +0000 |
---|---|---|
committer | rhaen <rhaen> | 2007-11-30 16:55:28 +0000 |
commit | 965c1604d178695537ff0602b5fafd55d36fd51a (patch) | |
tree | c0a187ddadd2e378990e7d2b87fef5d0e7e1ab4c /mk/compiler | |
parent | 249def86954dfbc272de99320d8c57d5298136cc (diff) | |
download | pkgsrc-965c1604d178695537ff0602b5fafd55d36fd51a.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
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/sunpro.mk | 10 |
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. |