forked from kashifshah-mirrors/goptimize
LDFLAGS
This commit is contained in:
parent
ed1a7b3b39
commit
a1d8d70461
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
TAG=`git describe --tags`
|
||||
VERSION ?= `git describe --tags`
|
||||
LDFLAGS=-ldflags "-s -extldflags \"--static\" -w -X main.version=${VERSION}"
|
||||
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}"
|
||||
|
||||
build = echo "\n\nBuilding $(1)-$(2)" && GOOS=$(1) GOARCH=$(2) go build ${LDFLAGS} -o dist/goptimize_${VERSION}_$(1)_$(2) \
|
||||
&& bzip2 dist/goptimize_${VERSION}_$(1)_$(2)
|
||||
|
|
Loading…
Reference in New Issue