@@ -6,6 +6,7 @@ source "${OPENCOARRAYS_SRC_DIR}/prerequisites/build-functions/edit_GCC_download_
66
77build_and_install ()
88{
9+
910 num_threads=${arg_j}
1011 build_path=" ${OPENCOARRAYS_SRC_DIR} /prerequisites/builds/${package_to_build} -${version_to_build} "
1112
@@ -52,17 +53,17 @@ build_and_install()
5253
5354 # Switch download mechanism, if wget is not available
5455 edit_GCC_download_prereqs_file_if_necessary
55-
56+
5657 # Download GCC prerequisities
5758 " ${PWD} " /contrib/download_prerequisites
5859
5960 info " popd"
6061 popd
6162 info " Configuring gcc/g++/gfortran builds with the following command:"
62- info " ${download_path} /${package_source_directory} /configure --prefix=${install_path} --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror"
63- " ${download_path} /${package_source_directory} /configure" --prefix=" ${install_path} " --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror
64- info " Building with the following command: 'make -j${num_threads} bootstrap '"
65- make " -j${num_threads} " bootstrap
63+ info " ${download_path} /${package_source_directory} /configure --prefix=${install_path} --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror ${bootstrap_configure} "
64+ " ${download_path} /${package_source_directory} /configure" --prefix=" ${install_path} " --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror ${bootstrap_configure}
65+ info " Building with the following command: 'make -j${num_threads} ${bootstrap_build} '"
66+ make " -j${num_threads} " ${bootstrap_build}
6667 if [[ ! -z " ${SUDO:- } " ]]; then
6768 info " You do not have write permissions to the installation path ${install_path} "
6869 info " If you have administrative privileges, enter your password to install ${package_to_build} "
@@ -71,7 +72,7 @@ build_and_install()
7172 ${SUDO:- } make install
7273
7374 fi # end if [[ "${package_to_build}" != "gcc" ]]; then
74-
75+
7576 info " popd"
7677 popd
7778}
0 commit comments