#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

# needed with the Ubuntu toolchain to avoid issues
export DEB_LDFLAGS_MAINT_STRIP := -Wl,-Bsymbolic-functions

# Avoids build failure on mips64el
export DEB_CFLAGS_MAINT_APPEND=-Wno-error=undef

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dgtk_doc=true \
		-Dgjs=false \
		-Dlua51=false

override_dh_makeshlibs:
	dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/libpeas-2/ -- -c4

override_dh_auto_test:
	dh_auto_test -- --timeout-multiplier=6

override_dh_gnome_clean:
