@@ -6,6 +6,7 @@ source "${OPENCOARRAYS_SRC_DIR}/prerequisites/build-functions/edit_GCC_download_
6
6
7
7
build_and_install ()
8
8
{
9
+
9
10
num_threads=${arg_j}
10
11
build_path=" ${OPENCOARRAYS_SRC_DIR} /prerequisites/builds/${package_to_build} -${version_to_build} "
11
12
@@ -52,17 +53,17 @@ build_and_install()
52
53
53
54
# Switch download mechanism, if wget is not available
54
55
edit_GCC_download_prereqs_file_if_necessary
55
-
56
+
56
57
# Download GCC prerequisities
57
58
" ${PWD} " /contrib/download_prerequisites
58
59
59
60
info " popd"
60
61
popd
61
62
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}
66
67
if [[ ! -z " ${SUDO:- } " ]]; then
67
68
info " You do not have write permissions to the installation path ${install_path} "
68
69
info " If you have administrative privileges, enter your password to install ${package_to_build} "
@@ -71,7 +72,7 @@ build_and_install()
71
72
${SUDO:- } make install
72
73
73
74
fi # end if [[ "${package_to_build}" != "gcc" ]]; then
74
-
75
+
75
76
info " popd"
76
77
popd
77
78
}
0 commit comments