[pkg-bacula-devel] Debian release specific code in debian/rules

Sven Hartge sven at svenhartge.de
Fri May 1 18:40:44 BST 2020


On 01.05.20 19:38, Sven Hartge wrote:

> DEBIAN_RELEASE = $(shell cut -f1 -d'.' /etc/debian_version)
> ifeq ($(DEBIAN_RELEASE,10))
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> endif

Right, better ideas always manifest themselves *after* pressing "send":

DEBIAN_RELEASE = $(shell dpkg-parsechangelog -S Distribution)
ifeq ($(DEBIAN_RELEASE,buster-backports))
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
endif

That would work independently of what the build-chroot says, right?

Grüße,
Sven



More information about the pkg-bacula-devel mailing list