mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Properly statically compile, without warnings; netgo,osusergo
This commit is contained in:
parent
ad057c12c0
commit
bbbab8d2ef
2 changed files with 4 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -103,7 +103,7 @@ build-simple: clean
|
|||
export CGO_ENABLED=1
|
||||
$(GO) build \
|
||||
-o dist/ntfy_linux_amd64/ntfy \
|
||||
-tags sqlite_omit_load_extension \
|
||||
-tags sqlite_omit_load_extension,osusergo,netgo \
|
||||
-ldflags \
|
||||
"-linkmode=external -extldflags=-static -s -w -X main.version=$(VERSION) -X main.commit=$(shell git rev-parse --short HEAD) -X main.date=$(shell date +%s)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue