Skip to content

Commit

Permalink
BUILDING.md: add osusergo for static build
Browse files Browse the repository at this point in the history
Go 1.11 includes a fix to os/user to be working in a static binary
(fixing golang/go#23265). The fix requires
`osusergo` build tag to be set for static binaries, which is what
this commit documents.

[v2: sort tags alphabetically]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Jul 19, 2018
1 parent 94cfce6 commit 48570b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BUILDING.md
Expand Up @@ -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*:
Expand Down

0 comments on commit 48570b3

Please sign in to comment.