From f6ba71ed12dd5682cb6866e44f8936cc7ee59772 Mon Sep 17 00:00:00 2001 From: hans Date: Fri, 16 Dec 2011 16:49:26 +0000 Subject: Fix build on SunOS with gcc>=4.6 --- textproc/mecab-base/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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} -- cgit v1.2.3