Skip to content

Commit 77ffa36

Browse files
authored
Merge pull request #2476 from kolyshkin/osusergo
BUILDING.md: add osusergo for static build
2 parents 2a8e28a + 48570b3 commit 77ffa36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ You can build static binaries by providing a few variables to `make`:
117117
```sudo
118118
make EXTRA_FLAGS="-buildmode pie" \
119119
EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' \
120-
BUILDTAGS="static_build netgo"
120+
BUILDTAGS="netgo osusergo static_build"
121121
```
122122

123123
> *Note*:

0 commit comments

Comments
 (0)