From cedf3fb78a7b5aa7b250baee0c65e6e4582345b5 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 24 May 2014 19:27:11 +0400 Subject: Build with --as-needed --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 264b48f..f5b777c 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,8 @@ DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +export LDFLAGS += -Wl,--as-needed + ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),hurd-i386)) RECVMMSG:=--enable-recvmmsg=no else -- cgit v1.2.3