summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorfhajny <fhajny>2012-06-08 13:21:10 +0000
committerfhajny <fhajny>2012-06-08 13:21:10 +0000
commit6ff0c43032be796fbb3d0d52ea5902e35dc6e015 (patch)
tree05bd6f93d7b8d6d71fdde2740404eabfe7643502 /devel/ncurses
parent8912e3b32ca10a020b3e2f41e80d4d2b00740d35 (diff)
downloadpkgsrc-6ff0c43032be796fbb3d0d52ea5902e35dc6e015.tar.gz
Fix ncurses/ncursesw build on SunOS and GCC>=4.6
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index d4066d9da05..8548a2fc7bf 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.16 2011/04/06 14:02:47 adam Exp $
+# $NetBSD: Makefile.common,v 1.17 2012/06/08 13:21:10 fhajny Exp $
#
# used by devel/ncursesw/Makefile
@@ -48,6 +48,10 @@ CONFIGURE_ARGS+= --without-manpage-tbl
.endif
.if ${OPSYS} == "SunOS"
+.include "../../mk/compiler.mk"
+. if !empty(CC_VERSION:Mgcc-4.[6-9].*)
+BUILDLINK_TRANSFORM+= rm:-D_XOPEN_SOURCE_EXTENDED
+. endif
TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src
TERMINFODIR= share/lib/terminfo
.else