Disable static compilation for OSX

This commit is contained in:
Fabian Reinartz 2015-12-09 18:20:44 +01:00
parent 07300bad52
commit 33506d7257
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,6 @@ if [ "$(go env GOOS)" = "windows" ]; then
fi fi
ldflags=" ldflags="
-extldflags \"-static\"
-X ${repo_path}/version.Version=${version} -X ${repo_path}/version.Version=${version}
-X ${repo_path}/version.Revision=${revision} -X ${repo_path}/version.Revision=${revision}
-X ${repo_path}/version.Branch=${branch} -X ${repo_path}/version.Branch=${branch}
@ -37,6 +36,10 @@ ldflags="
-X ${repo_path}/version.BuildDate=${build_date} -X ${repo_path}/version.BuildDate=${build_date}
-X ${repo_path}/version.GoVersion=${go_version}" -X ${repo_path}/version.GoVersion=${go_version}"
if [ "$(go env GOOS)" != "darwin" ]; then
ldflags="${ldflags} -extldflags \"-static\""
fi
export GO15VENDOREXPERIMENT="1" export GO15VENDOREXPERIMENT="1"
echo " > alertmanager" echo " > alertmanager"