Package list libatasmart / bcf8c2e
Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS to set --as-needed Michael Biebl 5 years ago
2 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
44 * Use canonical URLs for Vcs-* fields, switch to https.
55 * Drop --disable-silent-rules from debian/rules. This is now handled by dh
66 directly depending on whether the DH_QUIET environment variable is set.
7 * Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS to set --as-needed.
78
89 -- Michael Biebl <biebl@debian.org> Thu, 26 May 2016 05:41:36 +0200
910
22 %:
33 dh $@ --with autoreconf
44
5 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
5 export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
66
77 override_dh_link:
88 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