diff options
author | sketch <sketch@pkgsrc.org> | 2007-05-23 08:42:36 +0000 |
---|---|---|
committer | sketch <sketch@pkgsrc.org> | 2007-05-23 08:42:36 +0000 |
commit | aa1c561a73d2a1363a4e6986bf1788b02582a409 (patch) | |
tree | bd4e7ad38e9176f894a9ff26d5d89db9623d4536 | |
parent | e86c2c5a5a0c6b732538ba7d5b267f8980a6e6e4 (diff) | |
download | pkgsrc-aa1c561a73d2a1363a4e6986bf1788b02582a409.tar.gz |
Add C99 support, required for packages which use C99 such as devel/glib2
-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 |