mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-06 09:52:14 +01:00
Merge pull request #2183 from marineam/ldflags
*: fix ldflags for go1.7
This commit is contained in:
commit
657255cb9c
@ -34,9 +34,9 @@ src_compile(){
|
||||
v=$(git describe --long --dirty) || die
|
||||
v=${v#v}
|
||||
v=${v/-/+}
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/lib.Version ${v}"
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/lib.Version=${v}"
|
||||
else
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/lib.Version ${PV}"
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/lib.Version=${PV}"
|
||||
fi
|
||||
|
||||
go_build "${COREOS_GO_PACKAGE}/acbuild"
|
||||
|
||||
@ -40,7 +40,7 @@ src_prepare() {
|
||||
|
||||
src_compile() {
|
||||
export GO15VENDOREXPERIMENT="1"
|
||||
GO_LDFLAGS="-X main.version $(git describe --dirty)" || die
|
||||
GO_LDFLAGS="-X main.version=$(git describe --dirty)" || die
|
||||
coreos-go_src_compile
|
||||
}
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ IUSE=""
|
||||
|
||||
src_compile() {
|
||||
export GO15VENDOREXPERIMENT="1"
|
||||
GO_LDFLAGS="-X main.version $(git describe --dirty)" || die
|
||||
GO_LDFLAGS="-X main.version=$(git describe --dirty)" || die
|
||||
go_build "${COREOS_GO_PACKAGE}/internal"
|
||||
}
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ RDEPEND="!dev-db/etcd:0
|
||||
!dev-db/etcdctl"
|
||||
|
||||
src_compile() {
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/version.GitSHA ${CROS_WORKON_COMMIT:0:7}"
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/version.GitSHA=${CROS_WORKON_COMMIT:0:7}"
|
||||
go_build "${COREOS_GO_PACKAGE}"
|
||||
go_build "${COREOS_GO_PACKAGE}/etcdctl"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user