[med-svn] [gatb-core] 01/04: Try dynamic linking of tools (but failed)
Andreas Tille
tille at debian.org
Wed Dec 13 22:08:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository gatb-core.
commit 850d87f525f592ec2251fba301fbd6c08bee661f
Author: Andreas Tille <tille at debian.org>
Date: Wed Dec 13 21:40:28 2017 +0100
Try dynamic linking of tools (but failed)
---
debian/patches/dynamic_linking_of_tools.patch | 31 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/dynamic_linking_of_tools.patch b/debian/patches/dynamic_linking_of_tools.patch
new file mode 100644
index 0000000..4bb59d6
--- /dev/null
+++ b/debian/patches/dynamic_linking_of_tools.patch
@@ -0,0 +1,31 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 28 Nov 2017 10:37:22 +0100
+Description: Dynamic linking against own library
+ Does not work unfortunately
+
+--- a/gatb-core/tools/CMakeLists.txt
++++ b/gatb-core/tools/CMakeLists.txt
+@@ -20,23 +20,7 @@ FOREACH (program ${PROGRAMS})
+ add_executable(${program} ${program}.cpp)
+ target_link_libraries(${program} ${gatb-core-libraries})
+
+- # (rayan) attempt at static linking, not sure if it works properly
+- # but we need this to distribute binaries that are compatible on old system
+- # (see lh3's post on Biostar during the 2.0.1 dsk/minia release, he could not
+- # run dsk even though i compiled it on gcc 4.4.7 on genocluster2)
+- if (static)
+- set_target_properties(${program} PROPERTIES LINK_SEARCH_START_STATIC w1)
+- set_target_properties(${program} PROPERTIES LINK_SEARCH_END_STATIC 1)
+- set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+- if (APPLE)
+- set(CMAKE_EXE_LINKER_FLAGS "-static-libstdc++") #removed -static because doesn't work on mac's
+- else()
+- set(CMAKE_EXE_LINKER_FLAGS "-static-libstdc++ -static")
+- endif()
+- message ("STATIC BINARIES for ${program}")
+- else()
+ message ("DYNAMIC BINARIES for ${program}")
+- endif()
+
+
+ ENDFOREACH (program)
diff --git a/debian/patches/series b/debian/patches/series
index 9ce914f..4acdb26 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ fix_hdf5_includes.patch
dynamic_lib.patch
fix_install_location.patch
set_soversion.patch
+dynamic_linking_of_tools.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gatb-core.git
More information about the debian-med-commit
mailing list