diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-09-21 11:40:47 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-09-22 12:54:22 +0100 |
commit | 29ed239afdcf147d9328dbe9ebae0719fe870ad8 (patch) | |
tree | dab0c49f86a192e78093e71db74ea9a699cb2197 | |
parent | ed4293ed38da3cc32fd2f333be22bda05d162c32 (diff) | |
download | debug-me-29ed239afdcf147d9328dbe9ebae0719fe870ad8.tar.gz |
Disable link time optimisation on ppc64el
-rw-r--r-- | debian/changelog | 7 | ||||
-rwxr-xr-x | debian/rules | 11 |
2 files changed, 17 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index d1e390e..45376e0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debug-me (1.20221231-2) UNRELEASED; urgency=medium + + * Disable link time optimisation on ppc64el (Closes: #1052313). + Thanks to Heinrich Schuchardt for the patch. + + -- Sean Whitton <spwhitton@spwhitton.name> Thu, 21 Sep 2023 11:40:35 +0100 + debug-me (1.20221231-1) unstable; urgency=medium * New upstream release. diff --git a/debian/rules b/debian/rules index 191cb01..b017b3c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,18 @@ #!/usr/bin/make -f +DPKG_EXPORT_BUILDFLAGS := 1 +include /usr/share/dpkg/architecture.mk + # Debian's ghc cannot compile anything with -fPIC at present, so we # have to disable PIE hardening to avoid build failures on archs like # amd64. See discussion on debian-haskell@lists.debian.org -export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie +DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie + +# Building with LTO failed on ppc64el (LP: #2033639) +ifeq ("$(DEB_BUILD_ARCH)", "ppc64el") + DEB_BUILD_MAINT_OPTIONS += optimize=-lto +endif +export DEB_BUILD_MAINT_OPTIONS # cabal likes to write to $HOME, so use Setup.hs directly export BUILDER = ./Setup |