use gcc-4.2 on Mavericks

pull/17/head
Todd Persen 2013-10-25 13:38:30 -04:00
parent b50aed45b7
commit cf96e6e9ca
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ export LD_LIBRARY_PATH=/usr/local/lib
on_linux="no"
if [ `uname` == "Linux" ]; then
on_linux=yes
elif [ `uname -v | cut -d' ' -f4` == "13.0.0:" ]; then
export CC=gcc-4.2
fi
if [ $on_linux == yes ]; then
export CGO_CFLAGS="-I$leveldb_dir/include"