Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS to set --as-needed
Michael Biebl
6 years ago
4 | 4 |
* Use canonical URLs for Vcs-* fields, switch to https.
|
5 | 5 |
* Drop --disable-silent-rules from debian/rules. This is now handled by dh
|
6 | 6 |
directly depending on whether the DH_QUIET environment variable is set.
|
|
7 |
* Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS to set --as-needed.
|
7 | 8 |
|
8 | 9 |
-- Michael Biebl <biebl@debian.org> Thu, 26 May 2016 05:41:36 +0200
|
9 | 10 |
|
2 | 2 |
%:
|
3 | 3 |
dh $@ --with autoreconf
|
4 | 4 |
|
5 | |
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
|
|
5 |
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
|
6 | 6 |
|
7 | 7 |
override_dh_link:
|
8 | 8 |
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
|