[pkg-crosswire-devel] Bug#970471: Processed: reopen

Adrian Bunk bunk at debian.org
Sat Nov 14 12:35:51 GMT 2020


Control: found -1 3.0-1
Control: severity -1 serious
Control: tags -1 patch

On Mon, Sep 21, 2020 at 04:45:45PM -0400, Roberto C. Sánchez wrote:
>...
> I spent some time on this today and thanks to a suggestion from someone
> in IRC, I was able to determine that removing link-time optimization
> fixed the mips64el build.  Specifically, these lines had to be removed:
> 
> -        SET_TARGET_PROPERTIES("${target}" PROPERTIES
> -            INTERPROCEDURAL_OPTIMIZATION TRUE)
>...

After some further debugging I ended up with the workaround below.

> Regards,
> 
> -Roberto

cu
Adrian

--- debian/rules.old	2020-11-12 16:28:54.469582397 +0000
+++ debian/rules	2020-11-12 16:29:21.098026127 +0000
@@ -5,6 +5,10 @@
 
 # Hardening
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+ifeq ($(DEB_HOST_ARCH), mips64el)
+  DEB_LDFLAGS_MAINT_APPEND += -flto-partition=none
+endif
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 



More information about the pkg-crosswire-devel mailing list