Skip to content

Commit c8523cc

Browse files
authored
Merge pull request #4470 from AkihiroSuda/fix-static-plugin
BUILDING.md: fix description about static builds
2 parents 35d320c + 43cbdf8 commit c8523cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BUILDING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ You can build static binaries by providing a few variables to `make`:
117117

118118
```sudo
119119
make EXTRA_FLAGS="-buildmode pie" \
120-
EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' \
120+
EXTRA_LDFLAGS='-linkmode external -extldflags "-fno-PIC -static"' \
121121
BUILDTAGS="netgo osusergo static_build"
122122
```
123123

124124
> *Note*:
125125
> - static build is discouraged
126-
> - static containerd binary does not support loading plugins
126+
> - static containerd binary does not support loading shared object plugins (`*.so`)
127127
128128
# Via Docker container
129129

0 commit comments

Comments
 (0)