[lintian] 01/01: t/tests/binaries-missing-depends-on-libc: Use --no-as-needed
This is an automated email from the git hooks/post-receive script.
jwilk pushed a commit to branch master
in repository lintian.
commit ccdd25b7bbc5e28816c794b702b504afa9fcd366
Author: Jakub Wilk <jwilk@debian.org>
Date: Wed Mar 30 15:14:01 2016 +0200
t/tests/binaries-missing-depends-on-libc: Use --no-as-needed
If the linker defaults to --as-needed (which is the case for some Debian
derivatives), it might not get libc linked into the C++ binary:
see bug #712081.
The binaries-missing-depends-on-libc test needs the binaries linked to
libc, so pass --no-as-needed explicitly to the linker.
---
debian/changelog | 4 ++++
t/tests/binaries-missing-depends-on-libc/debian/debian/rules | 3 +++
2 files changed, 7 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 8f7d16d..89852b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -40,6 +40,10 @@ lintian (2.5.43) UNRELEASED; urgency=medium
spell-checking. (Closes: #818003) Thanks to Andreas Beckmann for
the bug report.
+ * t/tests/binaries-missing-depends-on-libc/debian/debian/rules:
+ + [JW] Apply patch from Dan Nicholson to pass --no-as-needed to the
+ linker. (Closes: #819551)
+
-- Niels Thykier <niels@thykier.net> Fri, 11 Mar 2016 18:35:45 +0000
lintian (2.5.42.1) unstable; urgency=medium
diff --git a/t/tests/binaries-missing-depends-on-libc/debian/debian/rules b/t/tests/binaries-missing-depends-on-libc/debian/debian/rules
index c33b4c7..188f490 100644
--- a/t/tests/binaries-missing-depends-on-libc/debian/debian/rules
+++ b/t/tests/binaries-missing-depends-on-libc/debian/debian/rules
@@ -2,6 +2,9 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+# Make sure the C++ library actually links to libc
+export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed
+
%:
dh $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: