Host builds install libtool archives into staging_dir/host/lib, and
libssl.la, libtls.la, libgmpxx.la, libmpfr.la, libmpc.la and libisl.la
name their dependencies by absolute path in dependency_libs. A prebuilt
staging_dir/host used from another directory, as with scripts/ext-tools.sh
or the tools container in the CI of a fork, then fails to link any tool
that is rebuilt against them:
libtool: error: '/__w/openwrt/openwrt/openwrt/staging_dir/host/lib/libcrypto.la' is not a valid libtool archive
The .la files are now deleted after each host install, as they already
are for target staging. Consumers link through -L/-l and pkg-config.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Link: https://github.com/openwrt/openwrt/pull/25361
Signed-off-by: Robert Marko <robimarko@gmail.com>