[Debian-med-packaging] Bug#1112687: spaln FTCBFS: uses -l flags in Makefile dependencies

Helmut Grohne helmut at subdivi.de
Sun Aug 31 15:31:54 BST 2025


Source: spaln
Version: 3.0.2+dfsg-2
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

spaln fails to cross build from source, because lists -l flags for 
linking libraries in Makefile dependencies. Doing so invokes a behavior 
where make looks up the library using a built-in library search path. 
This path is architecture-dependent and is one reason for make not being 
Multi-Arch: foreign. In any case, make does not succeed at looking up 
e.g. -lz as it tries /usr/lib/${DEB_BUILD_MULTIARCH} but not 
/usr/lib/${DEB_HOST_MULTIARCH} where it would actually reside. 
Generally, listing such dependencies bears little benefit. I'm attaching 
a patch that splits out these flags from the CLIB, SLIB and ULIB 
variables into a LIBRARIES variable such that they can still be passed 
to the compiler but not listed as target dependencies. Once applying it 
spaln cross builds successfully. Please consider applying it and also 
forwarding it upstream as it benefits other cross compilation 
distributions such as Yocto or PtxDist.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 2552 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20250831/b7144af1/attachment-0001.patch>


More information about the Debian-med-packaging mailing list