summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-08-07 18:21:27 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-08-07 18:21:27 +0200
commit7f304171b886ed62014699f748f9212130917ce1 (patch)
tree3c5c4f3cae7892584b2fd61a5faf437fef1d4b64 /Makefile
parent5d9922242240667964e774af89141ff7bfd55132 (diff)
[feat] shrink binaries passing flags to linker
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 287715d..3cb61c7 100644
--- a/Makefile
+++ b/Makefile
@@ -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