This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

golang linker flags - reduce binary size

  • Loading branch information...
zyxmon committed Feb 26, 2018
1 parent 854c8cd commit d98444ebe501eecbd63d292f3767b9edbffed5ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/golang.mk
View
@@ -72,6 +72,6 @@ define Build/Compile
cd $(PKG_BUILD_DIR); \
mkdir -p 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

0 comments on commit d98444e

Please sign in to comment.