diff --git a/recipes/shells/zsh/recipe.toml b/recipes/shells/zsh/recipe.toml index edb533b0d6..97dc9e6b05 100644 --- a/recipes/shells/zsh/recipe.toml +++ b/recipes/shells/zsh/recipe.toml @@ -18,6 +18,7 @@ script = """ DYNAMIC_INIT COOKBOOK_CONFIGURE_FLAGS+=( + --srcdir="${COOKBOOK_SOURCE}" --disable-gdbm --disable-pcre --disable-cap @@ -26,6 +27,10 @@ COOKBOOK_CONFIGURE_FLAGS+=( "${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}" +# Ensure awk scripts are executable (cross-compilation fix for +# config.status which tries to invoke awk scripts directly). +chmod +x "${COOKBOOK_SOURCE}"/Src/*.awk 2>/dev/null || true + # Pre-generate signames artifacts deterministically for Redox cross builds. gawk -f "${COOKBOOK_SOURCE}/Src/signames1.awk" "${COOKBOOK_ROOT}/prefix/${TARGET}/sysroot/${TARGET}/include/signal.h" > "${COOKBOOK_BUILD}/Src/sigtmp.c" "${COOKBOOK_ROOT}/bin/${TARGET}-gcc" -E -P "${COOKBOOK_BUILD}/Src/sigtmp.c" > "${COOKBOOK_BUILD}/Src/sigtmp.out"