Skip to content

Commit 2ad48e1

Browse files
committed
Merge pull request #1299 from vishh/static-link
Link cAdvisor statically.
2 parents 7ddf6eb + 7f61276 commit 2ad48e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if [ "${go_version:0:3}" = "1.4" ]; then
4545
fi
4646

4747
ldflags="
48+
-extldflags '-static'
4849
-X ${repo_path}/version.Version${ldseparator}${version}
4950
-X ${repo_path}/version.Revision${ldseparator}${revision}
5051
-X ${repo_path}/version.Branch${ldseparator}${branch}

0 commit comments

Comments
 (0)