We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bcce81 + 086e859 commit 9b5066aCopy full SHA for 9b5066a
1 file changed
BUILDING.md
@@ -117,13 +117,13 @@ You can build static binaries by providing a few variables to `make`:
117
118
```sudo
119
make EXTRA_FLAGS="-buildmode pie" \
120
- EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' \
+ EXTRA_LDFLAGS='-linkmode external -extldflags "-fno-PIC -static"' \
121
BUILDTAGS="netgo osusergo static_build"
122
```
123
124
> *Note*:
125
> - static build is discouraged
126
-> - static containerd binary does not support loading plugins
+> - static containerd binary does not support loading shared object plugins (`*.so`)
127
128
# Via Docker container
129
0 commit comments