[caffe] 230/249: patch: try to fix "undefinced reference"
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Tue Mar 8 14:51:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch debian/experimental
in repository caffe.
commit 989579e745e21b726888a8129a93fc4d26bb91ae
Author: Zhou Mo <cdluminate at gmail.com>
Date: Sat Sep 5 03:25:26 2015 +0000
patch: try to fix "undefinced reference"
---
debian/patches/add-cmake-ld-group.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
2 files changed, 17 insertions(+)
diff --git a/debian/patches/add-cmake-ld-group.patch b/debian/patches/add-cmake-ld-group.patch
new file mode 100644
index 0000000..f89625c
--- /dev/null
+++ b/debian/patches/add-cmake-ld-group.patch
@@ -0,0 +1,16 @@
+--- a/cmake/Dependencies.cmake
++++ b/cmake/Dependencies.cmake
+@@ -1,5 +1,5 @@
+ # This list is required for static linking and exported to CaffeConfig.cmake
+-set(Caffe_LINKER_LIBS "")
++set(Caffe_LINKER_LIBS "-Wl,--start-group")
+
+ # ---[ Boost
+ find_package(Boost 1.46 REQUIRED COMPONENTS system thread)
+@@ -156,3 +156,6 @@
+ if(BUILD_docs)
+ find_package(Doxygen)
+ endif()
++
++# ---[ End LD Group
++list(APPEND Caffe_LINKER_LIBS "-Wl,--end-group")
diff --git a/debian/patches/series b/debian/patches/series
index 14d18f4..739ed01 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
remove-ignore.patch
fix-cmake-add-target-property-version-soversion.patch
avoid-cmake-configgen-error.patch
+add-cmake-ld-group.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe.git
More information about the debian-science-commits
mailing list