Unverified Commit b2748e5d authored by xoviat's avatar xoviat Committed by GitHub
Browse files

Merge pull request #140 from xhochy/strip-linux-binaries

Strip binaries on non-OSX builds
parents 3634d867 453308de
...@@ -25,6 +25,13 @@ if [ -n "$IS_OSX" ]; then ...@@ -25,6 +25,13 @@ if [ -n "$IS_OSX" ]; then
# Disable homebrew auto-update # Disable homebrew auto-update
export HOMEBREW_NO_AUTO_UPDATE=1 export HOMEBREW_NO_AUTO_UPDATE=1
else
# Strip all binaries after compilation.
STRIP_FLAGS=${STRIP_FLAGS:-"-Wl,-strip-all"}
export CFLAGS="${CFLAGS:-$STRIP_FLAGS}"
export CXXFLAGS="${CXXFLAGS:-$STRIP_FLAGS}"
export FFLAGS="${FFLAGS:-$STRIP_FLAGS}"
fi fi
# Promote BUILD_PREFIX on search path to any newly built libs # Promote BUILD_PREFIX on search path to any newly built libs
......
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