Pass prefix options to make in source.sh

This commit is contained in:
Shivam Mathur 2024-12-29 09:22:49 +05:30
parent 12b88cf3e2
commit ba21a89e0b
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -152,7 +152,7 @@ add_extension_from_source() {
patch_extension "$extension" >/dev/null 2>&1
run_group "phpize" "phpize"
run_group "sudo $prefix_opts ./configure $suffix_opts $opts" "configure"
run_group "sudo make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)" "make"
run_group "sudo $prefix_opts make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)" "make"
run_group "sudo make install" "make install"
enable_extension "$extension" "$prefix"
fi