dpkg-buildflags() emits a number of var=val pairs, which specifically
set LDFLAGS. By turning on hardening, the value includes -z,now to
tell the linker to resolve all symbols at startup time, which is a
prerequisite for a read-only global offset table.
Suggested-by: lintian(1)
build-arch:
$(checkdir)
- $(MAKE)
+ $(MAKE) $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all \
+ dpkg-buildflags --export=cmdline)
build-indep:
build: build-indep build-arch