[atlas] 04/06: d/rules: support parallel=N in DEB_BUILD_OPTIONS.
Sébastien Villemot
sebastien at debian.org
Tue Aug 1 22:09:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository atlas.
commit 30c15594dc40d898fba69f64e5f379e72b43b23c
Author: Sébastien Villemot <sebastien at debian.org>
Date: Tue Aug 1 17:22:29 2017 +0200
d/rules: support parallel=N in DEB_BUILD_OPTIONS.
---
debian/rules | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 2099869..4570460 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,6 +42,12 @@ endif
endif
+# Parallel make variable, used by ATLAS build system
+PMAKE := make
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+PMAKE += -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
GFORTRAN_LIB_PATH := $(shell $(CC) -print-search-dirs | grep ^install: | awk '{print $$2}')
# Flags common to both the generic and custom packages
@@ -53,7 +59,7 @@ COMMON_CONFIG_PARAMS := --prefix="$(CURDIR)/debian/tmp" \
-D c -DWALL \
-Fa alg '-fPIC' \
-Ss f77lib "-L$(GFORTRAN_LIB_PATH) -lgfortran -lgcc_s -lpthread" \
- -Ss pmake 'make' \
+ -Ss pmake '$(PMAKE)' \
-Ss flapack /usr/lib/liblapack_pic.a \
-v 2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/atlas.git
More information about the debian-science-commits
mailing list