[caffe-contrib] 45/362: cmake: add SONAME

Zhou Mo cdluminate-guest at moszumanska.debian.org
Tue May 3 09:24:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

cdluminate-guest pushed a commit to branch master
in repository caffe-contrib.

commit dc7ce2a8032a39eb540927bd99940ad3e4b4a80a
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Sun Jul 12 01:13:24 2015 +0000

    cmake: add SONAME
---
 debian/patches/06-cmake-add-soname.patch | 11 +++++++++++
 debian/patches/series                    |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/patches/06-cmake-add-soname.patch b/debian/patches/06-cmake-add-soname.patch
new file mode 100644
index 0000000..00db44e
--- /dev/null
+++ b/debian/patches/06-cmake-add-soname.patch
@@ -0,0 +1,11 @@
+--- a/cmake/Targets.cmake
++++ b/cmake/Targets.cmake
+@@ -7,7 +7,7 @@
+   if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+     set(Caffe_LINK -Wl,-force_load caffe)
+   elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+-    set(Caffe_LINK -Wl,--whole-archive caffe -Wl,--no-whole-archive)
++    set(Caffe_LINK -Wl,--whole-archive caffe -Wl,--no-whole-archive -Wl,-soname,libcaffe.so.0)
+   endif()
+ endif()
+ 
diff --git a/debian/patches/series b/debian/patches/series
index b456d16..0be8012 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,4 +4,4 @@
 03-set-cmake-deps-openblas.patch
 04-fix-rpath-issue-in-cmake.patch
 05-set-cmake-cpuonly.patch
-
+06-cmake-add-soname.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe-contrib.git



More information about the debian-science-commits mailing list