Build bash recipe without parallel jobs

This commit is contained in:
Jeremy Soller 2021-07-14 11:56:37 -06:00
parent 6e25f3485b
commit 999ce1cd76
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 3 additions and 1 deletions

View File

@ -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
"""

View File

@ -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}"
}
"#;