#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

include debian/debian-autotools.mk

override_dh_auto_configure:
	$(config-save)
	$(config-patch)
	dh_auto_configure -- --disable-rpath
	# Still leaves -Wl,--rpath, so fix manually
	sed --in-place "s,^\(hardcode_libdir_flag_spec\),#\1," libtool

override_dh_installchangelogs:
	$(config-restore)
	dh_installchangelogs ChangeLog

%:
	dh $@

# End of file
