mirror of
https://github.com/axllent/goptimize.git
synced 2026-01-12 12:15:34 -05:00
LDFLAGS
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user