libgmp: do not regenerate autotools on host

This commit is contained in:
Jeremy Soller 2026-02-12 18:11:53 -07:00
parent 5e6745bf9e
commit ed2c186918

View File

@ -5,13 +5,19 @@
[source]
tar = "https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz"
blake3 = "fffe4996713928ae19331c8ef39129e46d3bf5b7182820656fd4639435cd83a4"
script = """
autotools_recursive_regenerate
"""
[build]
template = "custom"
script = """
# libgmp fails to regenerate autotools when building for host toolchain
# To workaround this, the source is copied to the build dir and autotools is
# only regenerated when not building for the host
rsync -a --delete "${COOKBOOK_SOURCE}/" ./
COOKBOOK_SOURCE="${COOKBOOK_BUILD}"
if [ "$TARGET" != "$COOKBOOK_HOST_TARGET" ]; then
autotools_recursive_regenerate
fi
DYNAMIC_STATIC_INIT
cookbook_configure
"""
"""