summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2016-03-24 13:28:49 +0000
committerryoon <ryoon@pkgsrc.org>2016-03-24 13:28:49 +0000
commit669b7a623d0ff28052d326ad84782486714dce2d (patch)
tree859a64d60f8c9dc7c9cd1485a2b6508e0c9371e9 /devel/ncurses
parent20ec63fd181f4011facb0b3fea61b74174ac5de6 (diff)
downloadpkgsrc-669b7a623d0ff28052d326ad84782486714dce2d.tar.gz
Fix clang build under FreeBSD 10.2
Do not detect the compiler as GCC.
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index ca484a39733..2fc8e0a796c 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2016/02/25 12:12:48 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.33 2016/03/24 13:28:49 ryoon Exp $
#
# used by devel/ncurses/Makefile
# used by devel/ncursesw/Makefile
@@ -61,6 +61,12 @@ CONFIGURE_ARGS+= --without-manpage-tbl
.include "../../mk/compiler.mk"
+# Fix build under FreeBSD 10.2
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ENV+= ac_cv_c_compiler_gnu=no
+CONFIGURE_ENV+= ac_cv_cxx_compiler_gnu=no
+.endif
+
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --disable-const
TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src