#!/usr/bin/make -f

export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-fPIE
export DEB_CXXFLAGS_MAINT_APPEND=-fPIE
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -fPIE -pie
# gcc15 defaults to -std=gnu23 where bool/true/false are keywords, which
# breaks bool.h's "typedef enum {false, true} bool;". Pin C standard to C17
# for the C sources (C++ files in this package are unaffected).
export CFLAGS := $(CFLAGS) -std=gnu17

%:
	dh $@
