Skip to content

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Aug 12, 2020

@theopenlab-ci
Copy link

theopenlab-ci bot commented Aug 12, 2020

Build succeeded.

* `-linkmode external` is required since Go 1.15 for static builds: golang/go#40711
* Clarify the meaning of "loading plugins"

Signed-off-by: Akihiro Suda <[email protected]>
@theopenlab-ci
Copy link

theopenlab-ci bot commented Aug 12, 2020

Build succeeded.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah
Copy link
Member

Thought the Makefile needed updates as well, but looks like it's not needed, because we're not building with -buildmode pie?

SHIM_GO_LDFLAGS=-ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) -X $(PKG)/version.Package=$(PACKAGE) -extldflags "-static" $(EXTRA_LDFLAGS)'

bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220

@AkihiroSuda
Copy link
Member Author

@thaJeztah Could you try updating Makefile in Go 1.15 PR? #4050

@thaJeztah
Copy link
Member

@AkihiroSuda to enable -buildmode pie ? Or only to add -linkmode external ?

@AkihiroSuda
Copy link
Member Author

Both (or nothing if not really needed)

@thaJeztah
Copy link
Member

Looks like the Makefile explicitly disables -buildmode pie and CGO for the shims (per golang/go#17789 (comment)), so if the problem only is when building with -buildmode pie, then I think no change is needed

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.4.x PR commits are cherry picked into the release/1.4 branch kind/docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants