diff --git a/common.mk b/common.mk index d2841ffcad0..0b766a35646 100644 --- a/common.mk +++ b/common.mk @@ -21,10 +21,10 @@ clean: find . -xtype l -delete commands: **/**/commands.go - go build $(GO_ARGS) -o commands src/commands/commands.go + go build -ldflags="-s -w" $(GO_ARGS) -o commands src/commands/commands.go subcommands: - go build $(GO_ARGS) -o subcommands/subcommands src/subcommands/subcommands.go + go build -ldflags="-s -w" $(GO_ARGS) -o subcommands/subcommands src/subcommands/subcommands.go $(MAKE) $(SUBCOMMANDS) subcommands/%: @@ -34,7 +34,7 @@ src-clean: rm -rf .gitignore src vendor Makefile *.go glide.* triggers: - go build $(GO_ARGS) -o triggers src/triggers/triggers.go + go build -ldflags="-s -w" $(GO_ARGS) -o triggers src/triggers/triggers.go $(MAKE) $(TRIGGERS) triggers/%: diff --git a/plugins/common/Makefile b/plugins/common/Makefile index 918b966ecc5..81bfdd798b6 100644 --- a/plugins/common/Makefile +++ b/plugins/common/Makefile @@ -5,6 +5,6 @@ clean-prop: rm -rf prop prop: clean-prop **/**/prop.go - go build $(GO_ARGS) -o prop src/prop/prop.go + go build -ldflags="-s -w" $(GO_ARGS) -o prop src/prop/prop.go include ../../common.mk