Statically compile C libraries
This commit is contained in:
parent
d059dca7c2
commit
07300bad52
|
@ -29,6 +29,7 @@ if [ "$(go env GOOS)" = "windows" ]; then
|
|||
fi
|
||||
|
||||
ldflags="
|
||||
-extldflags \"-static\"
|
||||
-X ${repo_path}/version.Version=${version}
|
||||
-X ${repo_path}/version.Revision=${revision}
|
||||
-X ${repo_path}/version.Branch=${branch}
|
||||
|
|
Loading…
Reference in New Issue