Don't include buildflags.mk manually, debhelper >= 9 does it already,
just export the appropriate variables as specified in
https://wiki.debian.org/HardeningWalkthrough#debhelper_9
#!/usr/bin/make -f
# -*- makefile -*-
-DEB_LDFLAGS_MAINT_APPEND=-Wl,-Bsymbolic-functions -Wl,--as-needed
-include /usr/share/dpkg/buildflags.mk
-export CFLAGS CPPFLAGS LDFLAGS
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,-Bsymbolic-functions -Wl,--as-needed
%:
dh $@