Created
May 10, 2016 18:01
-
-
Save rcgoodfellow/5e9d385d9813c742312b6e86dbf6e1e4 to your computer and use it in GitHub Desktop.
script to build glog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
set -e | |
srcdir="${SRCDIR:-/tmp}" | |
jobs_=`nproc` | |
config_="--enable-static" | |
export CXX=clang++ | |
export CC=clang | |
export CXXFLAGS=" \ | |
-stdlib=libc++ -std=c++14 \ | |
-I/usr/local/include/c++/v1 \ | |
-Wno-sign-compare \ | |
-Wno-reserved-user-defined-literal" | |
export LD_LIBRARY_PATH=/usr/local/lib | |
cd $srcdir | |
#glog | |
if [ ! -d "glog" ]; then | |
#git clone https://github.com/google/glog.git | |
git clone https://github.com/rcgoodfellow/glog.git | |
fi | |
cd glog | |
autoreconf -i | |
./configure $config_ | |
make -j$jobs_ | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment