mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 05:44:17 +08:00
libgmp: do not regenerate autotools on host
This commit is contained in:
parent
5e6745bf9e
commit
ed2c186918
@ -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
|
||||
"""
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user