diff --git a/debian/changelog b/debian/changelog index 5463d3b..f6ccf28 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ * Use canonical URLs for Vcs-* fields, switch to https. * Drop --disable-silent-rules from debian/rules. This is now handled by dh directly depending on whether the DH_QUIET environment variable is set. + * Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS to set --as-needed. -- Michael Biebl Thu, 26 May 2016 05:41:36 +0200 diff --git a/debian/rules b/debian/rules index b1f80f0..baa511d 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ %: dh $@ --with autoreconf -export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed +export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed override_dh_link: dh_link -plibatasmart-dev lib/$(DEB_HOST_MULTIARCH)/$$(basename $$(readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libatasmart.so)) usr/lib/$(DEB_HOST_MULTIARCH)/libatasmart.so