[med-svn] [sra-sdk] 02/04: Do not link statically

Andreas Tille tille at debian.org
Thu Sep 1 13:18:38 UTC 2016


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

tille pushed a commit to branch master
in repository sra-sdk.

commit 615d9976e85eb2a377c68a64769fe1a45a0374c0
Author: Andreas Tille <tille at debian.org>
Date:   Thu Sep 1 15:02:46 2016 +0200

    Do not link statically
---
 debian/patches/do_not_link_statically.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/do_not_link_statically.patch b/debian/patches/do_not_link_statically.patch
new file mode 100644
index 0000000..39b77f4
--- /dev/null
+++ b/debian/patches/do_not_link_statically.patch
@@ -0,0 +1,26 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Mon, 06 Jun 2016 11:24:46 +0200
+Description: Do not link statically
+
+--- a/build/ld.linux.gcc.sh
++++ b/build/ld.linux.gcc.sh
+@@ -26,7 +26,7 @@
+ # define linker params
+ LD_EXPORT_GLOBAL="-Wl,--export-dynamic"
+ LD_MULTIPLE_DEFS="-Wl,-zmuldefs"
+-LD_STATIC="-Wl,-Bstatic"
++LD_STATIC=""
+ LD_DYNAMIC="-Wl,-Bdynamic"
+ LD_ALL_SYMBOLS="-Wl,-whole-archive"
+ LD_REF_SYMBOLS="-Wl,-no-whole-archive"
+--- a/build/ld.linux.exe.sh
++++ b/build/ld.linux.exe.sh
+@@ -304,7 +304,7 @@ then
+             XMLLIBDIR="-L$(grep XML2_LIBDIR ${BUILD_DIR}/Makefile.config.linux.$ARCH | perl -e'while(<>){if(/XML2_LIBDIR = (.+)/){print $1}}')"
+         else
+             ##### Link libxml2 statically on all linux-es except Ubuntu
+-            XMLLIBDIR="-Wl,-Bstatic -L$(grep XML2_LIBDIR ${BUILD_DIR}/Makefile.config.linux.$ARCH | perl -e'while(<>){if(/XML2_LIBDIR = (.+)/){print $1}}')"
++            XMLLIBDIR="-L$(grep XML2_LIBDIR ${BUILD_DIR}/Makefile.config.linux.$ARCH | perl -e'while(<>){if(/XML2_LIBDIR = (.+)/){print $1}}')"
+         fi
+     fi
+     if [ $HAVE_XML -ne 0 ]
diff --git a/debian/patches/series b/debian/patches/series
index 57d5639..857d5a5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ fix_tests.patch
 set_explicit_path_to_schemata.patch
 absolute_vschema_path_in_test.patch
 ignore_failing_tests_for_the_moment.patch
+do_not_link_statically.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/sra-sdk.git



More information about the debian-med-commit mailing list