Disable Ubuntu's LTO on ppc64el
authorSergio Durigan Junior <sergiodj@debian.org>
Fri, 16 Jun 2023 19:59:41 +0000 (15:59 -0400)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 18 Jun 2023 08:00:44 +0000 (09:00 +0100)
debian/rules

index 1d8d167a9b9d72b3cc43cbd290578c3015988f78..c19da8bb981612e7042d7c83d31a81d311d7eaee 100755 (executable)
@@ -30,6 +30,9 @@ export ZSH_COMPLETIONS_PATH=/usr/share/zsh/vendor-completions
 ifeq (yes, $(shell dpkg-vendor --derives-from Ubuntu && echo yes))
 # See LP: #2019992
 export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
+ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el))
+export DEB_BUILD_MAINT_OPTIONS = optimize=-lto
+endif
 endif
 
 %: