The following commit has been merged in the master branch:
commit 31bf3b55cde6142ad95524f254224d126b01df8b
Author: Etienne Millon <[email protected]>
Date:   Fri Jun 29 18:33:50 2012 +0200

    Add -Wl,--as-needed to LDFLAGS

diff --git a/debian/changelog b/debian/changelog
index c872a77..1cab709 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ zsnes (1.510+bz2-4) UNRELEASED; urgency=low
   * debian/rules :
     - use find -delete instead of shell globbing
     - use dpkg-buildflags
+    - add -Wl,--as-needed to LDFLAGS (Closes: #607311)
 
  -- Etienne Millon <[email protected]>  Fri, 29 Jun 2012 17:37:53 +0200
 
diff --git a/debian/rules b/debian/rules
index a8fa9d7..e1a3231 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@
 #export DH_VERBOSE=1
 #export DH_OPTIONS=-v
 
-export DEB_LDFLAGS_MAINT_APPEND = -lpthread
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -lpthread
 
 %:
        dh $@ --sourcedirectory=src --with autoreconf

-- 
Emulator of the Super Nintendo Entertainment System (TM)

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to