From 2d85244cede80204f216c7ce8d65db033990221b Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 22 Jan 2022 11:40:41 +0800 Subject: [PATCH] Update: Makefile for external static lib --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d52d92a..b9b4202 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ dist: cd web && npm run build linux: - go build + go build -v -ldflags '-linkmode=external -extldflags=-static' -tags sqlite_omit_load_extension,netgo windows: CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build