[libdap] 12/48: Add as-needed patch
Alastair McKinstry
mckinstry at moszumanska.debian.org
Sun Jul 5 10:17:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to tag unstable/3.12.0-1
in repository libdap.
commit d70a7062387886f658032d75391aedcead98c209
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Tue Sep 13 17:23:35 2011 +0100
Add as-needed patch
---
debian/as-needed.patch | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/debian/as-needed.patch b/debian/as-needed.patch
new file mode 100644
index 0000000..c4748c7
--- /dev/null
+++ b/debian/as-needed.patch
@@ -0,0 +1,38 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: Patch to ensure -Wl,--as-needed is NOT reordered by libtool.
+ Note that this patch is applied by ./debian/rules AFTER autoreconf is run;
+ it cannot be applied in ./debian/patches
+Bug-Debian: http://bugs.debian.org/347650
+Last-Updated: 2011-09-13
+Forwarded: no
+
+--- ltmain.sh.orig 2011-09-13 10:05:45.000000000 +0100
++++ ltmain.sh 2011-09-13 10:22:40.000000000 +0100
+@@ -5500,6 +5500,11 @@
+ continue
+ ;;
+
++ -Wl,--as-needed)
++ deplibs="$deplibs $arg"
++ continue
++ ;;
++
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ func_fatal_error "more than one -exported-symbols argument is not allowed"
+@@ -6150,6 +6155,15 @@
+ lib=
+ found=no
+ case $deplib in
++ -Wl,--as-needed)
++ if test "$linkmode,$pass" = "prog,link"; then
++ compile_deplibs="$deplib $compile_deplibs"
++ finalize_deplibs="$deplib $finalize_deplibs"
++ else
++ deplibs="$deplib $deplibs"
++ fi
++ continue
++ ;;
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libdap.git
More information about the debian-science-commits
mailing list