diff options
author | joerg <joerg> | 2015-03-02 19:59:06 +0000 |
---|---|---|
committer | joerg <joerg> | 2015-03-02 19:59:06 +0000 |
commit | e4dfe8ce9b850e33359f8d5efdc1f9e2db601f76 (patch) | |
tree | 58a83ed1e78d8f3180ae8a77d03d2d8bb94c7666 /math | |
parent | 710efbc9903fe10e922e164a745c8c3a7c9e4abf (diff) | |
download | pkgsrc-e4dfe8ce9b850e33359f8d5efdc1f9e2db601f76.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')
-rw-r--r-- | math/qalculate/Makefile | 9 |
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" |