diff options
| author | ryoon <ryoon@pkgsrc.org> | 2021-04-21 13:53:18 +0000 |
|---|---|---|
| committer | ryoon <ryoon@pkgsrc.org> | 2021-04-21 13:53:18 +0000 |
| commit | dc6c09438c4dc24f2d6f8c22b973e1e5edf72e05 (patch) | |
| tree | 376c6117f942d98ddbc7bdf5fb48d6df75c3c0f8 /math/lapack/patches | |
| parent | 79015c5eeab5719f4c9f60d9aa085f1c9a0a2bdb (diff) | |
| download | pkgsrc-dc6c09438c4dc24f2d6f8c22b973e1e5edf72e05.tar.gz | |
cblas: Fix link to Fortran libraries by using Fortran compiler as linker
On NetBSD.
In PKGSRC_FORTRAM=gfortran case, libcblas has no RPATH=/usr/pkg/gccXX/lib
and libgfortran and libquadmath are not found.
In PKGSRC_FORTRAN=g95 case, libcblas has no
RPATH=/usr/pkg/lib/gcc-lib/x86_64--netbsd/4.1.2 and libf95 is not found.
Use Fortran compiler as linker instread of C compiler to fix link.
Diffstat (limited to 'math/lapack/patches')
| -rw-r--r-- | math/lapack/patches/patch-CBLAS_src_CMakeLists.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt b/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt index 53675d55718..270e73fb440 100644 --- a/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt +++ b/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt @@ -1,10 +1,18 @@ -$NetBSD: patch-CBLAS_src_CMakeLists.txt,v 1.1 2020/10/12 21:51:57 bacon Exp $ +$NetBSD: patch-CBLAS_src_CMakeLists.txt,v 1.2 2021/04/21 13:53:19 ryoon Exp $ Support combined build of shared and static libraries. ---- CBLAS/src/CMakeLists.txt.orig 2017-11-13 04:15:54.000000000 +0000 +--- CBLAS/src/CMakeLists.txt.orig 2019-11-21 07:57:43.000000000 +0000 +++ CBLAS/src/CMakeLists.txt -@@ -126,3 +126,18 @@ target_include_directories(cblas PUBLIC +@@ -116,7 +116,6 @@ list(REMOVE_DUPLICATES SOURCES) + add_library(cblas ${SOURCES}) + set_target_properties( + cblas PROPERTIES +- LINKER_LANGUAGE C + VERSION ${LAPACK_VERSION} + SOVERSION ${LAPACK_MAJOR_VERSION} + ) +@@ -126,3 +125,17 @@ target_include_directories(cblas PUBLIC ) target_link_libraries(cblas PRIVATE ${BLAS_LIBRARIES}) lapack_install_library(cblas) @@ -13,7 +21,6 @@ Support combined build of shared and static libraries. + add_library(cblas_static STATIC ${SOURCES}) + set_target_properties( + cblas_static PROPERTIES -+ LINKER_LANGUAGE C + OUTPUT_NAME cblas + ) + target_include_directories(cblas_static PUBLIC |
