summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-06-04 09:14:33 +0000
committerjperkin <jperkin>2015-06-04 09:14:33 +0000
commit829aee0e1fe25770cb159677fa6ee433b4750169 (patch)
tree6e91b325f64507b13df0faef29c1ddb4dd349c16 /devel/ncurses
parent22b5f2d5b49f4a91a88f6731e12689659643dc1a (diff)
downloadpkgsrc-829aee0e1fe25770cb159677fa6ee433b4750169.tar.gz
USE_LANGUAGES must be set before including compiler.mk
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/Makefile.common7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index c9d78d8501e..1f47109c9b1 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.27 2015/06/02 01:03:57 sevan Exp $
+# $NetBSD: Makefile.common,v 1.28 2015/06/04 09:14:33 jperkin Exp $
#
# used by devel/ncurses/Makefile
# used by devel/ncursesw/Makefile
@@ -42,6 +42,10 @@ SUBST_MESSAGE.rpath= Fixing rpath in ncurses-config.
CONFIGURE_ARGS+= --disable-mixed-case
.endif
+.if ${OPSYS} == "SunOS"
+USE_LANGUAGES+= c99
+.endif
+
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
TOOL_DEPENDS+= ncurses-${NC_VERS}:../../devel/ncurses
CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q}
@@ -64,7 +68,6 @@ CONFIGURE_ARGS+= --without-manpage-tbl
.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
-USE_LANGUAGES+= c99
. if !empty(CC_VERSION:Mgcc-4.*)
#This may yet need to be adapted for systems prior to Solaris 10
BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_POSIX_C_SOURCE=200112L