add ldflags to go build
This commit is contained in:
parent
d5bd53089f
commit
ff763e8385
6
Makefile
6
Makefile
@ -4,10 +4,10 @@ clean:
|
|||||||
rm -r bin/
|
rm -r bin/
|
||||||
|
|
||||||
bin/ecload:
|
bin/ecload:
|
||||||
GOOS=linux GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go
|
GOOS=linux GOARCH=amd64 go build -v -ldflags '-s' -o $@ cmd/ecload/main.go
|
||||||
|
|
||||||
bin/ecload.exe:
|
bin/ecload.exe:
|
||||||
GOOS=windows GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go
|
GOOS=windows GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
|
||||||
|
|
||||||
bin/ecload-mac:
|
bin/ecload-mac:
|
||||||
GOOS=darwin GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go
|
GOOS=darwin GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
|
||||||
|
Loading…
Reference in New Issue
Block a user