pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

missing library: libgfortran.so.3 on NetBSD




wip/cblas builds fine on CentOS, but produces the following on NetBSD:

=> Checking for missing run-time search paths in cblas-3.9.0
ERROR: lib/libcblas.so.3.9.0: missing library: libgfortran.so.3
*** Error code 1

Stop.
bmake.bin[1]: stopped in /home/bacon/Pkgsrc/pkgsrc/wip/cblas
*** Error code 1

Stop.
bmake.bin: stopped in /home/bacon/Pkgsrc/pkgsrc/wip/cblas

The following hack alleviates the problem:

--- a/cblas/Makefile
+++ b/cblas/Makefile
@@ -9,6 +9,7 @@ LAPACK_COMPONENT_CMAKE_ARGS=    \
        -DLAPACK_LIBRARIES=${LAPACK_LIBS:Q} \
        -DCBLAS=ON -DLAPACKE=OFF \
        -DCMAKE_VERBOSE=ON
+LDFLAGS+=      ${COMPILER_RPATH_FLAG}${PREFIX}/gcc5/lib

 .include "../../mk/blas.buildlink3.mk"
 .include "../../math/lapack/Makefile.common"

I'm thinking mk/compilers/gcc.mk should be adding this to LDFLAGS. Am I wrong?

Thanks,

    JB



Home | Main Index | Thread Index | Old Index