misc(cook): move autotools_recursive_regenerate out of DYNAMIC_INIT

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh 2026-02-04 18:23:23 +11:00
parent bbcfee34e5
commit ecd674b6c0
No known key found for this signature in database
GPG Key ID: 80E0357347554B89

View File

@ -2,12 +2,6 @@ pub(crate) static SHARED_PRESCRIPT: &str = r#"
# Build dynamically
function DYNAMIC_INIT {
COOKBOOK_AUTORECONF="autoreconf"
autotools_recursive_regenerate() {
for f in $(find . -name configure.ac -o -name configure.in -type f | sort); do
echo "* autotools regen in '$(dirname $f)'..."
( cd "$(dirname "$f")" && "${COOKBOOK_AUTORECONF}" -fvi "$@" -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
done
}
case "${TARGET}" in
"i586-unknown-redox" | "riscv64gc-unknown-redox")
@ -45,6 +39,13 @@ function DYNAMIC_INIT {
export COOKBOOK_DYNAMIC=1
}
autotools_recursive_regenerate() {
for f in $(find . -name configure.ac -o -name configure.in -type f | sort); do
echo "* autotools regen in '$(dirname $f)'..."
( cd "$(dirname "$f")" && "${COOKBOOK_AUTORECONF}" -fvi "$@" -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
done
}
# Build both dynamically and statically
function DYNAMIC_STATIC_INIT {
DYNAMIC_INIT