summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcf <mcf@pkgsrc.org>2020-11-19 19:58:27 +0000
committermcf <mcf@pkgsrc.org>2020-11-19 19:58:27 +0000
commit268e01598712311b32bded18283004f2ca2516c4 (patch)
treecc672d50f69a28e946a35693124b38b8eb81c070
parent1e42e7718cc8f58c339bad7557f189bff4c364c4 (diff)
downloadpkgsrc-268e01598712311b32bded18283004f2ca2516c4.tar.gz
arpack-ng: fix build with gfortran 10
gfortran 10 rejects certain argument mismatches, causing build errors. This issue is fixed upstream[0], but the commit modifies 40 files, so until the next release use -fallow-argument-mismatch to downgrade these to warnings, as suggested by the gcc 10 porting guide[1]. [0] https://github.com/opencollab/arpack-ng/commit/9418632214acf6d387896ab29a8f5bdff2d4e38a [1] https://gcc.gnu.org/gcc-10/porting_to.html#argument-mismatch
-rw-r--r--math/arpack-ng/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/math/arpack-ng/Makefile b/math/arpack-ng/Makefile
index 7eb8884c4a1..bbcaf1e1b82 100644
--- a/math/arpack-ng/Makefile
+++ b/math/arpack-ng/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/10/12 21:52:02 bacon Exp $
+# $NetBSD: Makefile,v 1.3 2020/11/19 19:58:27 mcf Exp $
DISTNAME= arpack-ng-3.7.0
PKGREVISION= 1
@@ -13,6 +13,10 @@ LICENSE= original-bsd
USE_LANGUAGES= c fortran
USE_CMAKE= yes
+# Required to build with gfortran 10. Fixed upstream in
+# https://github.com/opencollab/arpack-ng/commit/9418632214
+FFLAGS+= -fallow-argument-mismatch
+
OBJDIR= obj
CONFIGURE_DIRS= ${OBJDIR}