Description: Honour the build flags exported by dpkg-buildpackage
 The upstream Makefile already uses CPPFLAGS, CXXFLAGS and LDFLAGS, but
 they are only populated if dpkg's buildflags.mk is included.
Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Last-Update: 2026-10-22

--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,10 @@
 BUILD_OBJ=obj
 SOURCE_DIR=src
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 # This enables various debugging options in build_gcsa.
 #VERIFY_FLAGS=-DVERIFY_CONSTRUCTION
 
