[med-svn] [blasr] 01/02: Statically link native libraries and dynamically link external ones
Afif Elghraoui
afif-guest at moszumanska.debian.org
Wed Jul 29 07:32:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch master
in repository blasr.
commit 0954b58f41386de7973108830f8c8995336d4387
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Tue Jul 28 23:49:43 2015 -0700
Statically link native libraries and dynamically link external ones
The native libraries do not appear to be used by any programs other
than these binaries generated here. I'm not sure if it's worth
shipping the libraries themselves.
---
debian/patches/selective-static-linking | 31 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/selective-static-linking b/debian/patches/selective-static-linking
new file mode 100644
index 0000000..2f46cd0
--- /dev/null
+++ b/debian/patches/selective-static-linking
@@ -0,0 +1,31 @@
+Description: Static link only the internal libraries
+ Libraries that are part of the source distribution are apparently only
+ used by the binaries in this package, so they are probably best statically
+ linked. Unfortunately, specifying static linking in the build system
+ will statically link even zlib and other external libraries.
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: no
+Last-Update: 2015-07-28
+--- blasr.orig/configure.py
++++ blasr/configure.py
+@@ -142,13 +142,13 @@
+ 'LIBBLASR_LIB': os.path.join(ROOT, 'libcpp', 'alignment'),
+ 'LIBPBDATA_LIB': os.path.join(ROOT, 'libcpp', 'pbdata'),
+ 'LIBPBIHDF_LIB': os.path.join(ROOT, 'libcpp', 'hdf'),
+- 'LIBBLASR_LIBFLAGS': '-lblasr',
+- 'LIBPBDATA_LIBFLAGS': '-lpbdata',
+- 'LIBPBIHDF_LIBFLAGS': '-lpbihdf',
+- 'HDF5_LIBFLAGS': '-lhdf5_cpp -lhdf5',
+- 'ZLIB_LIBFLAGS': '-lz',
+- 'PTHREAD_LIBFLAGS': '-lpthread',
+- 'DL_LIBFLAGS': '-ldl', # neeeded by HDF5 always
++ 'LIBBLASR_LIBFLAGS': '-Wl,-Bstatic -lblasr',
++ 'LIBPBDATA_LIBFLAGS': '-Wl,-Bstatic -lpbdata',
++ 'LIBPBIHDF_LIBFLAGS': '-Wl,-Bstatic -lpbihdf',
++ 'HDF5_LIBFLAGS': '-Wl,-Bdynamic -lhdf5_cpp -lhdf5',
++ 'ZLIB_LIBFLAGS': '-Wl,-Bdynamic -lz',
++ 'PTHREAD_LIBFLAGS': '-Wl,-Bdynamic -lpthread',
++ 'DL_LIBFLAGS': '-Wl,-Bdynamic -ldl', # neeeded by HDF5 always
+ 'SHELL': 'bash -xe',
+ }
+ #setifenvf(defaults, env, 'OS_STRING', get_OS_STRING)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4e9ea6e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+selective-static-linking
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/blasr.git
More information about the debian-med-commit
mailing list