mirror of
https://github.com/koreader/koreader
synced 2024-11-18 03:25:46 +00:00
13 lines
326 B
Bash
13 lines
326 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# don't do this for clang
|
||
|
if [ "$CXX" = "g++" ];
|
||
|
then export CXX="g++-4.8" CC="gcc-4.8";
|
||
|
fi
|
||
|
# in case anything ignores the environment variables, override through PATH
|
||
|
mkdir bin
|
||
|
ln -s $(which gcc-4.8) bin/cc
|
||
|
ln -s $(which gcc-4.8) bin/gcc
|
||
|
ln -s $(which c++-4.8) bin/c++
|
||
|
ln -s $(which g++-4.8) bin/g++
|