This repository was archived by the owner on Aug 20, 2021. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ ARG GOPATH=/go
90
90
ARG CONTAINERD_VERSION="v1.3.4+k3c.1"
91
91
ARG CONTAINERD_PACKAGE=github.com/dweomer/containerd
92
92
ARG CONTAINERD_BUILDTAGS="apparmor seccomp selinux netgo osusergo static_build no_btrfs"
93
- ARG CONTAINERD_EXTRA_FLAGS="-buildmode pie"
94
- ARG CONTAINERD_EXTRA_LDFLAGS='-w -s -extldflags "-fno-PIC -static"'
93
+ ARG CONTAINERD_EXTRA_FLAGS="-buildmode= pie"
94
+ ARG CONTAINERD_EXTRA_LDFLAGS='-w -s -extldflags "-fpic -static"'
95
95
RUN git clone -b "${CONTAINERD_VERSION}" "https://${CONTAINERD_PACKAGE}.git" ${GOPATH}/src/github.com/containerd/containerd
96
96
WORKDIR ${GOPATH}/src/github.com/containerd/containerd
97
97
ENV GO111MODULE=off
Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ endif
68
68
ifdef BUILDTAGS
69
69
GO_BUILDTAGS = ${BUILDTAGS}
70
70
else
71
- GO_BUILDTAGS = apparmor seccomp selinux netgo osusergo static_build no_btrfs
71
+ GO_BUILDTAGS = apparmor seccomp selinux netcgo osusergo static_build no_btrfs
72
72
endif
73
73
GO_BUILDTAGS += ${DEBUG_TAGS}
74
74
GO_TAGS =$(if $(GO_BUILDTAGS ) ,-tags "$(GO_BUILDTAGS ) ",)
75
75
76
76
GO_BUILDFLAGS ?= -buildmode=pie
77
- GO_EXTLDFLAGS ?= -fno-PIC - static
77
+ GO_EXTLDFLAGS ?= -static
78
78
GO_LDFLAGS ?= $(EXTRA_LDFLAGS )
79
79
GO_LDFLAGS += -X ${PKG}/pkg/version.Version=$(VERSION )
80
80
GO_LDFLAGS += -X ${PKG}/pkg/version.GitCommit=$(REVISION )
You can’t perform that action at this time.
0 commit comments