diff --git a/xbps.sh b/xbps.sh index 406c2c2587a..0dcde19e855 100755 --- a/xbps.sh +++ b/xbps.sh @@ -256,6 +256,7 @@ reset_tmpl_vars() postinstall_helpers make_install_target version \ ignore_files tar_override_cmd xml_entries sgml_entries \ build_depends libtool_fixup_la_stage no_fixup_libtool \ + disable_parallel_build \ XBPS_EXTRACT_DONE XBPS_CONFIGURE_DONE \ XBPS_BUILD_DONE XBPS_INSTALL_DONE" @@ -834,7 +835,8 @@ build_src_phase() run_func pre_build [ -z "$make_build_target" ] && make_build_target= - [ -n "$XBPS_MAKEJOBS" ] && makejobs="-j$XBPS_MAKEJOBS" + [ -n "$XBPS_MAKEJOBS" -a -z "$disable_parallel_build" ] && \ + makejobs="-j$XBPS_MAKEJOBS" # Export make_env vars. for f in ${make_env}; do