pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/lapack cblas: Fix link to Fortran libraries by us...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f1ee754f4529
branches: trunk
changeset: 450776:f1ee754f4529
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Wed Apr 21 13:53:18 2021 +0000
description:
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:
math/lapack/distinfo | 4 ++--
math/lapack/patches/patch-CBLAS_src_CMakeLists.txt | 15 +++++++++++----
2 files changed, 13 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r 84061bf18131 -r f1ee754f4529 math/lapack/distinfo
--- a/math/lapack/distinfo Wed Apr 21 13:27:27 2021 +0000
+++ b/math/lapack/distinfo Wed Apr 21 13:53:18 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.23 2020/10/12 21:51:57 bacon Exp $
+$NetBSD: distinfo,v 1.24 2021/04/21 13:53:18 ryoon Exp $
SHA1 (lapack-3.9.0.tar.gz) = 0451d180eed2b12b94aaae77e772d7573e87bec4
RMD160 (lapack-3.9.0.tar.gz) = 333bf17b3e2503c26cdd2139566fdc788be1d0c3
@@ -6,7 +6,7 @@
Size (lapack-3.9.0.tar.gz) = 7534567 bytes
SHA1 (patch-BLAS_SRC_CMakeLists.txt) = c8c69e6e0c67337af999863c4f5c64618d1374d7
SHA1 (patch-CBLAS_cblas.pc.in) = 3befb18c1b7f2f82c6da83ea10f913c817acf09f
-SHA1 (patch-CBLAS_src_CMakeLists.txt) = faa1ad6c322830cb62e0f5bdab33732c0372cce3
+SHA1 (patch-CBLAS_src_CMakeLists.txt) = ee309360ff4ad487be60156900c62c960d07daf3
SHA1 (patch-CMakeLists.txt) = ea2bec54dd2c283a96862ef760826bf6e633613e
SHA1 (patch-LAPACKE_CMakeLists.txt) = b5d4fb36550e1ae47e7e68ffec0e10afa3ac8864
SHA1 (patch-LAPACKE_lapacke.pc.in) = 7f0d91aaceac7f9980650ec90dbda95cf09b768f
diff -r 84061bf18131 -r f1ee754f4529 math/lapack/patches/patch-CBLAS_src_CMakeLists.txt
--- a/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt Wed Apr 21 13:27:27 2021 +0000
+++ b/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt Wed Apr 21 13:53:18 2021 +0000
@@ -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 @@
+ add_library(cblas_static STATIC ${SOURCES})
+ set_target_properties(
+ cblas_static PROPERTIES
-+ LINKER_LANGUAGE C
+ OUTPUT_NAME cblas
+ )
+ target_include_directories(cblas_static PUBLIC
Home |
Main Index |
Thread Index |
Old Index