[clapack] 01/04: Try to add soname but failed
Andreas Tille
tille at debian.org
Mon May 23 10:04:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository clapack.
commit 85c36d70e115af5ad256e77725689e1e74e83bdd
Author: Andreas Tille <tille at debian.org>
Date: Sat May 21 17:44:12 2016 +0200
Try to add soname but failed
---
debian/patches/create_shared_libs.patch | 6 +++---
debian/patches/series | 1 +
debian/patches/soname.patch | 22 ++++++++++++++++++++++
3 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/debian/patches/create_shared_libs.patch b/debian/patches/create_shared_libs.patch
index 144d858..a420d42 100644
--- a/debian/patches/create_shared_libs.patch
+++ b/debian/patches/create_shared_libs.patch
@@ -6,7 +6,7 @@
-add_library(blas ${ALLOBJ})
+add_library(cblas SHARED ${ALLOBJ})
-+add_library(cblasstatic STATIC ${ALLOBJ})
++add_library(cblas_static STATIC ${ALLOBJ})
if(UNIX)
- target_link_libraries(blas m)
+ target_link_libraries(cblas m)
@@ -32,7 +32,7 @@
-add_library(lapack ${ALLOBJ} ${ALLXOBJ})
-target_link_libraries(lapack blas)
+add_library(clapack SHARED ${ALLOBJ} ${ALLXOBJ})
-+add_library(clapackstatic STATIC ${ALLOBJ} ${ALLXOBJ})
++add_library(clapack_static STATIC ${ALLOBJ} ${ALLXOBJ})
+target_link_libraries(clapack cblas)
--- a/CMakeLists.txt
@@ -42,7 +42,7 @@
set(CPACK_PACKAGE_VERSION_PATCH 1)
include(CPack)
-export(TARGETS f2c blas lapack FILE clapack-targets.cmake)
-+export(TARGETS f2c cblas cblasstatic clapack clapackstatic FILE clapack-targets.cmake)
++export(TARGETS f2c cblas cblas_static clapack clapack_static FILE clapack-targets.cmake)
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config-version.cmake.in
${CLAPACK_BINARY_DIR}/clapack-config-version.cmake @ONLY)
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config.cmake.in
diff --git a/debian/patches/series b/debian/patches/series
index 5d071d7..f473e4d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
format-security.patch
skip_tests_triggering_stack_overflow.patch
create_shared_libs.patch
+soname.patch
diff --git a/debian/patches/soname.patch b/debian/patches/soname.patch
new file mode 100644
index 0000000..74dbd3e
--- /dev/null
+++ b/debian/patches/soname.patch
@@ -0,0 +1,22 @@
+--- a/BLAS/SRC/CMakeLists.txt
++++ b/BLAS/SRC/CMakeLists.txt
+@@ -137,6 +137,8 @@ endif()
+
+
+ add_library(cblas SHARED ${ALLOBJ})
++SET_TARGET_PROPERTIES(cblas PROPERTIES LIBRARY_SOVERSION 3.2.1
++ LIBRARY_VERSION 1)
+ add_library(cblas_static STATIC ${ALLOBJ})
+ if(UNIX)
+ target_link_libraries(cblas m)
+--- a/SRC/CMakeLists.txt
++++ b/SRC/CMakeLists.txt
+@@ -376,6 +376,8 @@ if(BUILD_COMPLEX16)
+ set(ALLOBJ ${ZLASRC} ${ALLAUX} ${DZLAUX})
+ endif()
+ add_library(clapack SHARED ${ALLOBJ} ${ALLXOBJ})
++SET_TARGET_PROPERTIES(clapack PROPERTIES LIBRARY_SOVERSION 3.2.1
++ LIBRARY_VERSION 1)
+ add_library(clapack_static STATIC ${ALLOBJ} ${ALLXOBJ})
+ target_link_libraries(clapack cblas)
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clapack.git
More information about the debian-science-commits
mailing list