-
I am reading the source code for k3s, I don't know why need this line anyone know it and give some hints. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'm try build cross compile based on AMD64 image. but it block by this line: CGO_ENABLED=1 "${GO}" build -tags "$TAGS" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC_SQLITE" -o bin/containerd ./cmd/server/main.go CGO_ENABLED=1 will block cross compile. so I search and found only gspt.SetProcTitle use C func. |
Beta Was this translation helpful? Give feedback.
-
CGO_ENABLED=1 go build -trimpath -tags "apparmor seccomp selinux netgo osusergo" -ldflags "-extldflags -static -X main.gitCommit=v1.0.2-0-g52b36a2d -X main.version=1.0.2 -w -s" -o runc . |
Beta Was this translation helpful? Give feedback.
-
K3s must be built with CGO_ENABLED; doing otherwise is not supported. Lines 105 to 106 in 535a919 The reason for calling setproctitle is discussed at #2014 |
Beta Was this translation helpful? Give feedback.
K3s must be built with CGO_ENABLED; doing otherwise is not supported.
k3s/scripts/build
Lines 105 to 106 in 535a919
The reason for calling setproctitle is discussed at #2014