Skip to content

Commit 3e83c06

Browse files
committed
Strip symbol tables from static binaries.
1 parent 4df92d1 commit 3e83c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ geth-linux-amd64:
105105
@ls -ld $(GOBIN)/geth-linux-* | grep amd64
106106

107107
geth-linux-amd64-static:
108-
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 --ldflags '-extldflags "-static"' -v ./cmd/geth
108+
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 --ldflags '-s -w -extldflags "-static"' -v ./cmd/geth
109109
@echo "Linux amd64 cross compilation done:"
110110
@ls -ld $(GOBIN)/geth-linux-* | grep amd64
111111

0 commit comments

Comments
 (0)