diff --git a/recipes/bash/recipe.toml b/recipes/bash/recipe.toml index 685091a9866f52d4c97329a19f618bc3f168bb0e..50e25dc35eef58d88802e2614f562c4172eba8a8 100644 --- a/recipes/bash/recipe.toml +++ b/recipes/bash/recipe.toml @@ -17,5 +17,6 @@ COOKBOOK_CONFIGURE_FLAGS+=( --disable-readline bash_cv_getenv_redef=no ) +COOKBOOK_MAKE_JOBS=1 # workaround for parallel make bugs cookbook_configure """ diff --git a/src/bin/cook.rs b/src/bin/cook.rs index 36c130460695b9be611ae0908c0ef89195169121..702ba8e69c796525cab3bc4557495e6f1be6e8be 100644 --- a/src/bin/cook.rs +++ b/src/bin/cook.rs @@ -479,9 +479,10 @@ COOKBOOK_CONFIGURE_FLAGS=( --enable-static ) COOKBOOK_MAKE="make" +COOKBOOK_MAKE_JOBS="$(nproc)" function cookbook_configure { "${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}" - "${COOKBOOK_MAKE}" -j "$(nproc)" + "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" "${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}" } "#;