@@ -135,15 +135,15 @@ default_install_path=${PWD}/$package_to_build-$version_to_build-installation
135
135
if [[ -z $3 || $3 == " --query" ]]; then
136
136
install_path=$default_install_path
137
137
else
138
- install_path=$2
138
+ install_path=$3
139
139
fi
140
140
141
141
# Interpret the fourth command-line argument, if present, as the number of threads for 'make'.
142
142
# Otherwise, default to single-threaded 'make'.
143
143
if [ -z $4 ]; then
144
144
num_threads=1
145
145
else
146
- num_threads=$3
146
+ num_threads=$4
147
147
fi
148
148
149
149
@@ -328,8 +328,6 @@ unpack_if_necessary()
328
328
# Make the build directory, configure, and build
329
329
build_and_install ()
330
330
{
331
- # echo "Configuring with the following command: "
332
- # echo "$download_path/$package_source_directory/configure --prefix=$install_path"
333
331
334
332
build_path=${PWD} /$package_to_build -$version_to_build -build &&
335
333
printf " Building $package_to_build $version_to_build .\n" &&
@@ -339,6 +337,8 @@ build_and_install()
339
337
pushd $download_path /$package_source_directory &&
340
338
${PWD} /contrib/download_prerequisites &&
341
339
popd &&
340
+ echo " Configuring with the following command: " &&
341
+ echo " $download_path /$package_source_directory /configure --prefix=$install_path --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror " &&
342
342
$download_path /$package_source_directory /configure --prefix=$install_path --enable-languages=c,c++,fortran,lto --disable-multilib --disable-werror &&
343
343
make -j $num_threads bootstrap &&
344
344
make install
0 commit comments