From 22f8fa93e6018fdc0586c7821821011d3bba26a4 Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Tue, 22 Aug 2017 15:28:04 +0200 Subject: Set the maint LDFLAGS to -Wl,--no-as-needed --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index 3ffcf82..635dcb7 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,12 @@ # https://wiki.debian.org/HardeningWalkthrough export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Os -Wall -pedantic -#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +# --as-needed breaks the build of the package, so let's turn it off +# explicitly. This is not needed in Debian, but the default may change. +# Ubuntu already defaults to --as-needed, so disabling it makes the +# package build there unmodified. +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed %: dh $@ -- cgit v1.2.3