Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
golang linker flags - reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxmon committed Feb 26, 2018
1 parent 854c8cd commit d98444e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/golang.mk
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ define Build/Compile
cd $(PKG_BUILD_DIR); \ cd $(PKG_BUILD_DIR); \
mkdir -p bin; \ mkdir -p bin; \
cd bin; \ cd bin; \
GOOS=linux GOARCH=$(GOARCH) $(GOARM) GOPATH=$(PKG_BUILD_DIR) $(GOROOT)/bin/go build -x -v $(PKG_GOGET) ; \ GOOS=linux GOARCH=$(GOARCH) $(GOARM) GOPATH=$(PKG_BUILD_DIR) $(GOROOT)/bin/go build -ldflags="-s -w" -x -v $(PKG_GOGET) ; \
) )
endef endef

0 comments on commit d98444e

Please sign in to comment.