summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-12-16 16:49:26 +0000
committerhans <hans@pkgsrc.org>2011-12-16 16:49:26 +0000
commitf6ba71ed12dd5682cb6866e44f8936cc7ee59772 (patch)
tree8f15ecd4de53a8b7efa6ab9698a6367bc9bced51
parent59e44a61e577ff27c284931a29be1e11eb45bc93 (diff)
downloadpkgsrc-f6ba71ed12dd5682cb6866e44f8936cc7ee59772.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}