diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-10-23 12:39:25 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-10-23 12:39:25 +0000 |
commit | 5dc2bb163bbcfc53eb9634f259981cc1f3487bb9 (patch) | |
tree | 7fc9484a770df4dd49f69b627138ab9050cca425 /textproc | |
parent | cd06cfd9d0c858bf79df220f399cf528d5453708 (diff) | |
download | pkgsrc-5dc2bb163bbcfc53eb9634f259981cc1f3487bb9.tar.gz |
ruby-ferret: Fix build on SunOS C99.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ruby-ferret/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/textproc/ruby-ferret/Makefile b/textproc/ruby-ferret/Makefile index c3411205692..0d662ba8dca 100644 --- a/textproc/ruby-ferret/Makefile +++ b/textproc/ruby-ferret/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2017/06/05 15:21:20 taca Exp $ +# $NetBSD: Makefile,v 1.13 2018/10/23 12:39:25 jperkin Exp $ DISTNAME= ferret-0.11.8.7 CATEGORIES= textproc @@ -11,5 +11,11 @@ LICENSE= mit USE_GCC_RUNTIME= yes RUBYGEM_OPTIONS+= --format-executable +.include "../../mk/compiler.mk" + +.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) +BUILDLINK_TRANSFORM.SunOS+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600 +.endif + .include "../../lang/ruby/gem.mk" .include "../../mk/bsd.pkg.mk" |