Skip to content

Commit

Permalink
Explicit linux gcc4 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored Jan 3, 2021
1 parent f08347f commit 60be0b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ fi

if [ "$TARGET" == "linux" ]; then
TARGET="linux64"
if [ "$OPT" == "gcc5" ]; then
if [ "$OPT" == "gcc4" ]; then
export CC="gcc"
export CXX="g++ -std=c++11"
export COMPILER="g++ -std=c++11"
elif [ "$OPT" == "gcc5" ]; then
export CC="gcc-5"
export CXX="g++-5 -std=c++11"
export COMPILER="g++5 -std=c++11"
Expand Down
2 changes: 2 additions & 0 deletions scripts/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ echoDots(){

if [ "$OPT" == "gcc4" ]; then
sudo add-apt-repository -y ppa:dns/gnu
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -q
sudo apt-get install -y gperf coreutils realpath libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev
sudo apt-get install gcc-4.9 g++-4.9
elif [ "$OPT" == "gcc5" ]; then
sudo add-apt-repository -y ppa:dns/gnu
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Expand Down

0 comments on commit 60be0b1

Please sign in to comment.