diff options
author | Paride Legovini <pl@ninthfloor.org> | 2017-08-22 15:28:04 +0200 |
---|---|---|
committer | Paride Legovini <pl@ninthfloor.org> | 2017-08-22 15:28:04 +0200 |
commit | 22f8fa93e6018fdc0586c7821821011d3bba26a4 (patch) | |
tree | e706b3d99c5f1748710a4717342fd1efdb14aafe | |
parent | b86f97bccaea47532861850b3cc6f1fc0248c882 (diff) |
Set the maint LDFLAGS to -Wl,--no-as-needed
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 6 insertions, 1 deletions
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 $@ |