[SCM] Debian packaging for OpenSAML 2.0 branch, master, updated. debian/2.4.3-3-6-ga979396

Russ Allbery rra at debian.org
Wed Feb 1 10:01:55 UTC 2012


The following commit has been merged in the master branch:
commit 5e71cb642b5cf5e231b6143e9699805540b9fb1f
Author: Russ Allbery <rra at debian.org>
Date:   Tue Jan 31 17:12:57 2012 -0800

    Pass --as-needed down to the linker

diff --git a/debian/changelog b/debian/changelog
index 12a07b1..eaa8159 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,7 +6,7 @@ opensaml2 (2.4.3-4) UNRELEASED; urgency=low
   * Force linking with -lpthread, working around a bug in libtool that
     drops the linkage because it uses -nostdlib.  See #468555.
   * Pass --as-needed to the linker to reduce unnecessary shared library
-    dependencies in the opensaml2-tools package.
+    dependencies.
   * Enable PIE for the opensaml2-tools binaries.
   * Strip all of the build flags added by Debian from the pkgconfig
     configuration file installed by the package.
diff --git a/debian/rules b/debian/rules
index a3be399..8401a5b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,9 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow,+pie
 
 # Force linking with -lpthread, working around a bug in libtool that drops
-# the linkage because it uses -nostdlib.  See #468555.
-export DEB_LDFLAGS_MAINT_APPEND = -lpthread
+# the linkage because it uses -nostdlib.  See #468555.  Add --as-needed to
+# drop a few unnecessary dependencies.
+export DEB_LDFLAGS_MAINT_APPEND = -lpthread -Wl,--as-needed
 
 # Set the results of dpkg-buildflags as make variables.  We don't use this
 # to communicate to dh_auto_configure; it calls dpkg-buildflags itself.

-- 
Debian packaging for OpenSAML 2.0



More information about the Pkg-shibboleth-devel mailing list