Avoid explicitly specifying -Wl,--as-needed linker flag.
Changes-By: lintian-brush
Fixes: lintian: debian-rules-uses-as-needed-linker-flag
See-also: https://lintian.debian.org/tags/debian-rules-uses-as-needed-linker-flag.html
Debian Janitor
3 years ago
32 | 32 | # package maintainers to append CFLAGS |
33 | 33 | export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
34 | 34 | # package maintainers to append LDFLAGS |
35 | export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-z,defs | |
35 | export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs | |
36 | 36 | |
37 | 37 | # Save Berkeley DB used for building the package |
38 | 38 | BDB_VERSION ?= $(shell LC_ALL=C dpkg-query -l 'libdb[45].[0-9]-dev' | grep ^ii | sed -e 's|.*\s\libdb\([45]\.[0-9]\)-dev\s.*|\1|') |