diff options
author | sketch <sketch> | 2007-05-23 08:42:36 +0000 |
---|---|---|
committer | sketch <sketch> | 2007-05-23 08:42:36 +0000 |
commit | edced0cd7fcb62e3b5b97398e347d8a62c14bfd9 (patch) | |
tree | bd4e7ad38e9176f894a9ff26d5d89db9623d4536 /mk/compiler | |
parent | 0b0ec5dd5a17ef21a3463856d4d7f5d5feb17704 (diff) | |
download | pkgsrc-edced0cd7fcb62e3b5b97398e347d8a62c14bfd9.tar.gz |
Add C99 support, required for packages which use C99 such as devel/glib2
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/sunpro.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk index 48031831d95..03dae2cbcd8 100644 --- a/mk/compiler/sunpro.mk +++ b/mk/compiler/sunpro.mk @@ -1,4 +1,4 @@ -# $NetBSD: sunpro.mk,v 1.40 2007/03/09 10:58:20 rillig Exp $ +# $NetBSD: sunpro.mk,v 1.41 2007/05/23 08:42:36 sketch Exp $ # # This is the compiler definition for the SUNWspro C compiler. # @@ -44,6 +44,11 @@ PKG_${t}:= ${SUNWSPROBASE}/bin/${n} . endfor .endfor +# Turn on C99 support if required +.if !empty(USE_LANGUAGES:Mc99) +_WRAP_EXTRA_ARGS.CC+= -xc99 +.endif + # The Solaris linker uses "-R" for rpath directives. _LINKER_RPATH_FLAG= -R |