From 2be330918ae643e60a709c652dcf56a5a3c55d2b Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Mon, 1 Jan 2024 03:53:21 +0300 Subject: [PATCH] Makefile: static link binary Signed-off-by: HeshamTB --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f6e407..cabc5cc 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ generate-version-and-build: @$(MAKE) wireguard-go wireguard-go: $(wildcard *.go) $(wildcard */*.go) - go build -v -o "$@" + CGO_ENABLED=0 go build -v -o "$@" install: wireguard-go @install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 "$<" "$(DESTDIR)$(BINDIR)/wireguard-go"