Skip to content

Commit

Permalink
Merge pull request multi-build#140 from xhochy/strip-linux-binaries
Browse files Browse the repository at this point in the history
Strip binaries on non-OSX builds
  • Loading branch information
xoviat committed Feb 6, 2018
2 parents 3634d86 + 453308d commit b2748e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ if [ -n "$IS_OSX" ]; then

# Disable homebrew auto-update
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

# Promote BUILD_PREFIX on search path to any newly built libs
Expand Down

0 comments on commit b2748e5

Please sign in to comment.