Commit 87b85019 authored by Kun Zhang's avatar Kun Zhang Committed by Kun Zhang

Make it work on Mac

parent 74c4b648
...@@ -85,8 +85,11 @@ fi ...@@ -85,8 +85,11 @@ fi
export CXXFLAGS="-DNDEBUG" export CXXFLAGS="-DNDEBUG"
# Statically link libgcc and libstdc++. # Statically link libgcc and libstdc++.
# -s to produce stripped binary # -s to produce stripped binary.
export LDFLAGS="-static-libgcc -static-libstdc++ -s" # And they don't work under Mac.
if [[ "$OS" != osx ]]; then
export LDFLAGS="-static-libgcc -static-libstdc++ -s"
fi
cd "$WORKING_DIR"/.. && ./configure $CONFIGURE_ARGS && cd "$WORKING_DIR"/.. && ./configure $CONFIGURE_ARGS &&
cd src && make clean && make $MAKE_TARGET && cd src && make clean && make $MAKE_TARGET &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment