From 932e5b3035e0f575c9f93004f261657a60d44296 Mon Sep 17 00:00:00 2001 From: James Cowgill Date: Tue, 1 Oct 2013 21:55:42 +0100 Subject: Added --as-needed linker option to only build against needed libraries This suppresses the "dpkg-shlibdeps: warning: package could avoid a useless dependency if" warnings. It also reduces the amount of dependencies needed (especially in libsfml-graphics2) --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 49a8f04..bdf2475 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,9 @@ VER ?= $(subst $(DTYPE),,$(UVER)) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +# Only link libraries that are actually needed +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + %: dh $@ -- cgit v1.2.3