[hypre] 07/08: lapack.patch: enable use of external lapack in libHYPRE_mli.so
Drew Parsons
dparsons at moszumanska.debian.org
Tue Nov 1 08:47:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
dparsons pushed a commit to branch experimental
in repository hypre.
commit f7f39e576f0bbc5ca23c1b01e6bb178c4f709fe6
Author: Drew Parsons <dparsons at debian.org>
Date: Tue Nov 1 14:20:19 2016 +0800
lapack.patch: enable use of external lapack in libHYPRE_mli.so
Debian's lapack in /usr/lib/lapack uses one underscore in function
names.
---
debian/patches/lapack.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 2 +-
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/debian/patches/lapack.patch b/debian/patches/lapack.patch
new file mode 100644
index 0000000..ab8629e
--- /dev/null
+++ b/debian/patches/lapack.patch
@@ -0,0 +1,27 @@
+Index: hypre/src/FEI_mv/femli/Makefile
+===================================================================
+--- hypre.orig/src/FEI_mv/femli/Makefile
++++ hypre/src/FEI_mv/femli/Makefile
+@@ -35,6 +35,7 @@ MLI_INCLUDES = \
+
+ C_COMPILE_FLAGS =\
+ -DMLI_SUPERLU\
++ -DLAPACKLIBS=${LAPACKLIBS}\
+ ${MLI_INCLUDES}\
+ ${CINCLUDES}
+
+Index: hypre/src/FEI_mv/femli/mli_utils.c
+===================================================================
+--- hypre.orig/src/FEI_mv/femli/mli_utils.c
++++ hypre/src/FEI_mv/femli/mli_utils.c
+@@ -27,7 +27,10 @@
+ #include "mli_utils.h"
+ #include "HYPRE_IJ_mv.h"
+ #include "../fei-hypre/HYPRE_parcsr_fgmres.h"
++
++#ifndef LAPACKLIBS
+ #include "hypre_lapack.h"
++#endif
+
+ /*--------------------------------------------------------------------------
+ * external function
diff --git a/debian/patches/series b/debian/patches/series
index 9abb216..e8ddc72 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ blas.patch
complex.patch
shlibs-interlink.patch
test.patch
+lapack.patch
diff --git a/debian/rules b/debian/rules
index 953b110..bc6dffb 100644
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ extra_flags += \
--with-fei --with-mli \
--without-superlu \
--with-blas \
- --with-lapack-libs="lapack" --with-lapack-lib-dirs="/usr/lib/lapack" \
+ --with-lapack-libs="lapack" --with-lapack-lib-dirs="/usr/lib/lapack" --with-fmangle-lapack="one-underscore" \
--prefix=$(CURDIR)/debian/tmp/usr
# To get petsc support when indexTypes.integerSize == 64
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hypre.git
More information about the debian-science-commits
mailing list