Skip to content

Instantly share code, notes, and snippets.

@rcgoodfellow
Created May 10, 2016 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcgoodfellow/5e9d385d9813c742312b6e86dbf6e1e4 to your computer and use it in GitHub Desktop.
Save rcgoodfellow/5e9d385d9813c742312b6e86dbf6e1e4 to your computer and use it in GitHub Desktop.
script to build glog
#!/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