[SCM] mpg123/master: Build with --as-needed.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Mar 28 07:51:12 UTC 2012


The following commit has been merged in the master branch:
commit 8d793e9fd0a585f1aabe91a6b86d591f3b2eac36
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Mar 28 09:50:51 2012 +0200

    Build with --as-needed.

diff --git a/debian/rules b/debian/rules
index c450059..3044266 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,6 +30,8 @@ CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
+LDFLAGS += -Wl,--as-needed
+
 #export DH_VERBOSE=1
 
 %:
@@ -40,6 +42,9 @@ mpg123-%: debian/mpg123-wrapper.in
 	o=`echo $@ | sed -e 's/^mpg123-\([^-]\+\).*/\1/'`; \
 	sed -e "s/@OUTPUT@/$$o/g" < debian/mpg123-wrapper.in > $@
 
+override_dh_autoreconf:
+	dh_autoreconf --as-needed
+
 override_dh_auto_configure:
 	dh_auto_configure -- $(CONF_COMMON) $(CONF_$(ARCH))
 

-- 
mpg123 packaging



More information about the pkg-multimedia-commits mailing list