Skip to content

Commit

Permalink
Merge pull request #5 from telia-oss/reduce_binary_size
Browse files Browse the repository at this point in the history
Reduce binary size with ldflags.
  • Loading branch information
Kristian committed Aug 3, 2018
2 parents 628b38e + bb4a6ff commit f9ab024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ build: test

release: test
@echo "== Release build =="
CGO_ENABLED=0 GOOS=$(TARGET) GOARCH=$(ARCH) go build -o $(BINARY_NAME)-$(TARGET)-$(ARCH)$(EXT) -v cmd/main.go
CGO_ENABLED=0 GOOS=$(TARGET) GOARCH=$(ARCH) go build -ldflags="-s -w" -o $(BINARY_NAME)-$(TARGET)-$(ARCH)$(EXT) -v cmd/main.go

clean:
@echo "== Cleaning =="
Expand Down

0 comments on commit f9ab024

Please sign in to comment.