tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gfortran-9.3 from lang/gcc9 on NetBSD/amd64 9.99.72 (GCC-9.3 in base)
Hi,
On my NetBSD/amd64 9.99.72 environment (GCC-9.3 as base C/C++ compiler),
math/blas-3.9.0 failed with the following messages:
=> Checking for missing run-time search paths in blas-3.9.0
ERROR: lib/libblas.so.3.9.0: missing library: libgfortran.so.5
ERROR: lib/libblas.so.3.9.0: missing library: libquadmath.so.0
*** Error code 1
I think that the following patch fixes the problem and it is
not harmful for BUILDLINK_DEPMETHOD=full case.
Index: mk/compiler/gfortran.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler/gfortran.mk,v
retrieving revision 1.15
diff -u -r1.15 gfortran.mk
--- mk/compiler/gfortran.mk 26 Mar 2020 12:44:46 -0000 1.15
+++ mk/compiler/gfortran.mk 16 Sep 2020 03:28:33 -0000
@@ -99,6 +99,8 @@
# Add the dependency on gfortran.
BUILDLINK_DEPMETHOD.gcc${GFORTRAN_VERSION}= full
. include "../../lang/gcc${GFORTRAN_VERSION}/buildlink3.mk"
+LDFLAGS+= -L${BUILDLINK_PREFIX.gcc${GFORTRAN_VERSION}}/gcc${GFORTRAN_VERSION}/lib
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc${GFORTRAN_VERSION}}/gcc${GFORTRAN_VERSION}/lib
. if defined(GFORTRAN_DIR) && !empty(GFORTRAN_DIR)
PKGSRC_MAKE_ENV+= GFORTRAN_DIR=${GFORTRAN_DIR:Q}
Could you please reply with your comments?
Thank you.
--
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index