Merge pull request #1299 from vishh/static-link

Link cAdvisor statically.
This commit is contained in:
Tim St. Clair 2016-05-20 15:49:24 -07:00
commit 2ad48e14fd

View File

@ -45,6 +45,7 @@ if [ "${go_version:0:3}" = "1.4" ]; then
fi fi
ldflags=" ldflags="
-extldflags '-static'
-X ${repo_path}/version.Version${ldseparator}${version} -X ${repo_path}/version.Version${ldseparator}${version}
-X ${repo_path}/version.Revision${ldseparator}${revision} -X ${repo_path}/version.Revision${ldseparator}${revision}
-X ${repo_path}/version.Branch${ldseparator}${branch} -X ${repo_path}/version.Branch${ldseparator}${branch}