@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2012/02/29 13:34:24 hans Exp $
+# $NetBSD: Makefile,v 1.63 2012/03/31 20:17:13 hans Exp $
#
DISTNAME= groff-1.20.1
@@ -22,8 +22,6 @@
USE_TOOLS+= perl:run sed:run awk:run
USE_FEATURES= getopt_long
-CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600
-
INFO_FILES= YES
REPLACE_AWK+= font/devlj4/generate/special.awk
@@ -56,6 +54,11 @@
BUILD_DEFS+= PAPERSIZE
.if defined(PAPERSIZE)
CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q}
+.endif
+
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-4.[6-9].*)
+CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600
.endif
# Usually the mdoc.local "volume-operating-system" definition is for