Wrong "ar" is used when crosscompiling since 2.1.6

David Oberhollenzer david.oberhollenzer at sigma-star.at
Wed Feb 14 05:37:35 PST 2024


Hi,

On 2/14/24 12:06, Rolf Eike Beer wrote:
> since version 2.1.6 building will always use plain "ar" when creating static
> libraries. Before it used the one matching the target triplet when
> crosscompiling. I can circumvent this by passing "AR=foo-bar-ar" to make for
> the moment. I suspect it is a side effect of the libtool removal.
> 

this indeed seems to be the case. I patched the autoconf file to include a check
for ar. I quickly verified both the broken behavior and the fix with a yocto
toolchain. The fix is now pushed to mtd-utils.git master (the commit hash is
1be992db04fc71296a98303724635b2b6b0cd10d).

Thanks,

David



More information about the linux-mtd mailing list