mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2024-12-22 17:38:00 +00:00
Add -s -w flags when building to omit the symbol table, debug information and the DWARF table
This commit is contained in:
parent
66f3436371
commit
7bc95f98c8
2
Makefile
2
Makefile
@ -29,7 +29,7 @@ lint: install-tools
|
|||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
CGO_ENABLED=0 go build -ldflags="-X 'github.com/dcarrillo/whatismyip/internal/core.Version=${VERSION}'" -o whatismyip ./cmd
|
CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/dcarrillo/whatismyip/internal/core.Version=${VERSION}'" -o whatismyip ./cmd
|
||||||
|
|
||||||
.PHONY: docker-build
|
.PHONY: docker-build
|
||||||
docker-build:
|
docker-build:
|
||||||
|
Loading…
Reference in New Issue
Block a user