debian/control, debian/rules: Call dh-autoreconf and pass LDFLAGS to minimize runtime dependencies

This commit is contained in:
Laurent Bigonville 2013-11-24 18:20:21 +01:00
parent d0947d03cc
commit a766575eca
3 changed files with 11 additions and 0 deletions

8
debian/rules vendored
View file

@ -4,12 +4,20 @@ include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/class/python-module.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
# We cannot call autoreconf -f -i as it updates INSTALL which is used for doc
# generation
DEB_DH_AUTORECONF_ARGS = --as-needed
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
# List any files which are not installed
include /usr/share/cdbs/1/rules/utils.mk
common-binary-post-install-arch:: list-missing
DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,-O1 -Wl,--as-needed
include /usr/share/dpkg/buildflags.mk
DEB_CONFIGURE_PREFIX :=
DEB_CONFIGURE_SYSCONFDIR := /etc/nut
DEB_CONFIGURE_INCLUDEDIR := /usr/include