From eb80c836822de369832ffb4c5b8bc7af8ca4509d Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Fri, 26 Jul 2013 20:22:58 -0700 Subject: Add --as-needed to linker flags; remove extraneous comment from debian/rules --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index 9b15344..780754e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,5 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. @@ -9,6 +8,9 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# Avoid overlinking and reduce library dependencies. +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + %: dh $@ --with autotools-dev -- cgit v1.2.3