mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
misc(cook): move autotools_recursive_regenerate out of DYNAMIC_INIT
Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
parent
bbcfee34e5
commit
ecd674b6c0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user