summaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/linux/gcc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/linux/gcc.sh')
-rwxr-xr-xcoin/provisioning/common/linux/gcc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/coin/provisioning/common/linux/gcc.sh b/coin/provisioning/common/linux/gcc.sh
index 44ff654b..44c63e2f 100755
--- a/coin/provisioning/common/linux/gcc.sh
+++ b/coin/provisioning/common/linux/gcc.sh
@@ -37,6 +37,8 @@
# shellcheck source=../unix/DownloadURL.sh
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
+# shellcheck source=../unix/SetEnvVar.sh
+source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
set -ex
@@ -97,6 +99,9 @@ function InstallGCC() {
sudo /usr/bin/update-alternatives --install /usr/bin/c++ c++ "$installPrefix/bin/g++-$suffixVersion" "$priority"
fi
+ echo "/usr/local/lib64" | sudo tee /etc/ld.so.conf.d/gcc-libraries.conf
+ echo "/usr/local/lib32" | sudo tee -a /etc/ld.so.conf.d/gcc-libraries.conf
+ sudo ldconfig -v
echo "GCC = $version" >> ~/versions.txt
}