]> git.tue.mpg.de Git - lopsub.git/commitdiff
debian: use fortified libc.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 24 Apr 2024 02:31:22 +0000 (04:31 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 10 May 2024 01:20:49 +0000 (03:20 +0200)
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)
debian/rules

index 387b14c917d8e7563d8898696ba1294463bc95a9..ddb503d8fc4ef189bce5846383f4f0b686c6c2d5 100755 (executable)
@@ -24,7 +24,8 @@ TRIPLET := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 build-arch:
        $(checkdir)
-       $(MAKE)
+       $(MAKE) $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all \
+               dpkg-buildflags --export=cmdline)
 build-indep:
 build: build-indep build-arch