mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-08 16:12:16 -04:00
Allow custom ldflags for go build
This allows users to use CGO and external linker when building Prometheus.
This commit is contained in:
parent
fce17b41c5
commit
69ebf45649
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ ldflags="
|
|||
-X ${repo_path}/version.Branch=${branch}
|
||||
-X ${repo_path}/version.BuildUser=${USER}@${host}
|
||||
-X ${repo_path}/version.BuildDate=${build_date}
|
||||
-X ${repo_path}/version.GoVersion=${go_version}"
|
||||
-X ${repo_path}/version.GoVersion=${go_version}
|
||||
${EXTRA_LDFLAGS}"
|
||||
|
||||
export GO15VENDOREXPERIMENT="1"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue