summaryrefslogtreecommitdiff
path: root/math/qalculate
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-03-02 19:59:06 +0000
committerjoerg <joerg@pkgsrc.org>2015-03-02 19:59:06 +0000
commit9fb05eeab8c973946609544ffbe25bf4fd6d2f74 (patch)
tree58a83ed1e78d8f3180ae8a77d03d2d8bb94c7666 /math/qalculate
parent4b4f4c781f85b9d108ca3bf28379c2ed1fc2ffab (diff)
downloadpkgsrc-9fb05eeab8c973946609544ffbe25bf4fd6d2f74.tar.gz
LLVM's correlated value propagation pass is known to require a lot of
memory and CPU time for certain input. Provide a variable (CLANG_NO_VALUE_PROPAGATION_PASS) for selectively disabling it in those places known to trigger it.
Diffstat (limited to 'math/qalculate')
-rw-r--r--math/qalculate/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/math/qalculate/Makefile b/math/qalculate/Makefile
index aa68dc49217..4aca1d4aa1b 100644
--- a/math/qalculate/Makefile
+++ b/math/qalculate/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2013/12/15 19:41:23 joerg Exp $
+# $NetBSD: Makefile,v 1.46 2015/03/02 19:59:07 joerg Exp $
DISTNAME= libqalculate-0.9.7
PKGNAME= qalculate-0.9.7
@@ -19,6 +19,8 @@ PKGCONFIG_OVERRIDE= ${WRKSRC}/libqalculate.pc.in
UNLIMIT_RESOURCES= datasize
+MAKE_ENV+= CLANG_NO_OPT=${CLANG_NO_VALUE_PROPAGATION_PASS:Q}
+
SUBST_CLASSES+= pthread
SUBST_FILES.pthread= libqalculate.pc.in
SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
@@ -31,11 +33,6 @@ CFLAGS.SunOS+= -D_LCONV_C99
pre-configure:
${RUN} cd ${WRKSRC}; autoconf
-.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mclang)
-MAKE_ENV+= CLANG_NO_OPT=-O0
-.endif
-
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../math/cln/buildlink3.mk"