diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2019-08-07 18:21:27 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2019-08-07 18:21:27 +0200 |
commit | 7f304171b886ed62014699f748f9212130917ce1 (patch) | |
tree | 3c5c4f3cae7892584b2fd61a5faf437fef1d4b64 /Makefile | |
parent | 5d9922242240667964e774af89141ff7bfd55132 (diff) |
[feat] shrink binaries passing flags to linker
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -47,8 +47,7 @@ get: build: $(foreach path,$(wildcard cmd/*),build_$(patsubst cmd/%,%,$(path))) build_%: - go build -tags $(TAGS) -ldflags "-X main.version=`git describe --tags`" -o $* ./cmd/$* - -# doesn't work for cross compile: @strip $* + go build -tags $(TAGS) -ldflags "-s -w -X main.version=`git describe --tags`" -o $* ./cmd/$* @mkdir -p build/bin @mv $* build/bin/ -@rm -rf build/${PROVIDER}/staging && mkdir -p build/${PROVIDER}/staging |