make(linux): smaller output binary
This commit is contained in:
parent
8fdc3a0428
commit
1cddd17017
2
Makefile
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user