#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Without gold --weak-unresolved-symbols, running the autopkgtest
# program dlopen-ing the plugin will result in
# dlopen failed: /usr/lib/aarch64-linux-gnu/wayfire/libfiredecor.so: undefined symbol: _ZTIN2wf3txn20transaction_object_tE
# *but* if we compile with -rdynamic and provide dummies for all expected
# symbols, it also works!
#export DEB_LDFLAGS_MAINT_APPEND = -fuse-ld=gold -Wl,--weak-unresolved-symbols

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --buildsystem=meson

override_dh_gencontrol:
	dh_gencontrol -- -V"libwf-config1:Version=$(shell dpkg-query -f '$${source:Version}' --show "libwf-config1")"
