diff options
author | James McCoy <jamessan@debian.org> | 2019-11-19 00:14:02 -0500 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2019-11-19 00:14:02 -0500 |
commit | dcf613a7c9ceaa911a21b50bdf207b46b7ec1090 (patch) | |
tree | 450517fbaac6cc6a1298e148daffd6a3b62da978 /debian/rules | |
parent | 7d44e46c503f7718ab82c50297015b3fe389b76e (diff) |
Fix FTBFS on certain archs due to PIC/PIE interaction
Thanks: Thorsten Glaser for the patch
Closes: #942798
Signed-off-by: James McCoy <jamessan@debian.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index a40e2cb..a7ba5ca 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,15 @@ # with-apache, no-apache | enable/disable certain packages # with-ruby, no-ruby | -DEB_BUILD_MAINT_OPTIONS=hardening=+all +include /usr/share/dpkg/architecture.mk + +# Workaround an issue with PIC/PIE on certain architectures (c.f., #942798) +ifneq (,$(filter x32,$(DEB_HOST_ARCH))) + DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie +else + DEB_BUILD_MAINT_OPTIONS=hardening=+all +endif + include /usr/share/dpkg/default.mk # Fully functional Java support is still a bit spotty on some Debian |