debian/rules: don't include buildflags.mk manually
authorAntonio Ospite <ao2@ao2.it>
Thu, 1 Mar 2018 22:19:21 +0000 (23:19 +0100)
committerAntonio Ospite <ao2@ao2.it>
Thu, 1 Mar 2018 23:17:58 +0000 (00:17 +0100)
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

debian/rules

index c5817c9..89ba88d 100755 (executable)
@@ -1,9 +1,7 @@
 #!/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 $@