debian/rules: remove the -Wl,--as-needed linker flag
authorNicholas Guriev <nicholas@guriev.su>
Wed, 29 Jun 2022 08:57:22 +0000 (11:57 +0300)
committerNicholas Guriev <nicholas@guriev.su>
Wed, 29 Jun 2022 08:57:22 +0000 (11:57 +0300)
It is on by default since bullseye.
Fixes the 'debian-rules-uses-as-needed-linker-flag' Lintian tag.

debian/rules

index 40a7404..a48eb45 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- makefile -*-
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export DEB_LDFLAGS_MAINT_APPEND = -Wl,-Bsymbolic-functions -Wl,--as-needed
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,-Bsymbolic-functions
 
 %:
        dh $@