summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhans <hans>2011-12-16 16:49:26 +0000
committerhans <hans>2011-12-16 16:49:26 +0000
commite295aed9736b4fcdac77c9a1d77a21537ff35d88 (patch)
tree8f15ecd4de53a8b7efa6ab9698a6367bc9bced51
parent83f787feeedfd499d908d63e7a9211bb9be460ad (diff)
downloadpkgsrc-e295aed9736b4fcdac77c9a1d77a21537ff35d88.tar.gz
Fix build on SunOS with gcc>=4.6
-rw-r--r--textproc/mecab-base/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/textproc/mecab-base/Makefile b/textproc/mecab-base/Makefile
index ee3717313e5..cab92d27553 100644
--- a/textproc/mecab-base/Makefile
+++ b/textproc/mecab-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/10/14 08:22:35 obache Exp $
+# $NetBSD: Makefile,v 1.6 2011/12/16 16:49:26 hans Exp $
#
.include "../../textproc/mecab/Makefile.common"
@@ -17,9 +17,13 @@ USE_LIBTOOL= yes
OWN_DIRS= ${PREFIX:Q}/lib/mecab/dic
.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
USE_TOOLS+= gmake
+. if !empty(CC_VERSION:Mgcc-4.[6-9].*)
+CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -std=c99
+. endif
.endif
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}