Skip to content

Commit

Permalink
scripts: Ensure OSX build works on older versions. Fixes #147.
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Jun 11, 2014
1 parent 938371e commit c0bda92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ if [ "$(go env GOOS)" = "freebsd" ]; then
export CGO_LDFLAGS="$CGO_LDFLAGS -extld clang" # Workaround for https://code.google.com/p/go/issues/detail?id=6845
fi

# On OSX, we need to use an older target to ensure binaries are
# compatible with older linkers
if [ "$(go env GOOS)" = "darwin" ]; then
export MACOSX_DEPLOYMENT_TARGET=10.6
fi

# Install dependencies
echo "--> Installing dependencies to speed up builds..."
go get \
Expand Down

0 comments on commit c0bda92

Please sign in to comment.