From 1cddd170175885f1406a65cd90b39d89f810388c Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 16 Apr 2025 18:33:42 +1200 Subject: [PATCH] make(linux): smaller output binary --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 161b723..cc59923 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ rsrc_windows_amd64.syso: windows-manifest.json # Linux release build/qbolt: $(SOURCES) - $(GO) build $(GOFLAGS_L) -o build/qbolt + CGO_CFLAGS='-Os -ffunction-sections -fdata-sections -flto=auto' CGO_CXXFLAGS='-Os -ffunction-sections -fdata-sections -flto=auto' CGO_LDFLAGS='-Wl,--gc-sections -flto=auto -fwhole-program' $(GO) build $(GOFLAGS_L) -o build/qbolt upx build/qbolt build/qbolt-${VERSION}-debian12-x86_64.tar.xz: build/qbolt