Merge pull request #2476 from kolyshkin/osusergo

BUILDING.md: add osusergo for static build
This commit is contained in:
Derek McGowan 2018-07-19 11:31:09 -07:00 committed by GitHub
commit 77ffa366af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ You can build static binaries by providing a few variables to `make`:
```sudo
make EXTRA_FLAGS="-buildmode pie" \
EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' \
BUILDTAGS="static_build netgo"
BUILDTAGS="netgo osusergo static_build"
```
> *Note*: