summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParide Legovini <pl@ninthfloor.org>2017-08-22 15:28:04 +0200
committerParide Legovini <pl@ninthfloor.org>2017-08-22 15:28:04 +0200
commit22f8fa93e6018fdc0586c7821821011d3bba26a4 (patch)
treee706b3d99c5f1748710a4717342fd1efdb14aafe
parentb86f97bccaea47532861850b3cc6f1fc0248c882 (diff)
Set the maint LDFLAGS to -Wl,--no-as-needed
-rwxr-xr-xdebian/rules7
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 $@