Skip to content

Commit

Permalink
Merge pull request #23 from ExpressenAB/cgodisabled
Browse files Browse the repository at this point in the history
static linking on built binaries
  • Loading branch information
rgynn authored Aug 24, 2020
2 parents fe9da44 + 3281580 commit 3bd8698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ build:

xbuild: clean
@mkdir -p build
GOARCH=amd64 GOOS="linux" go build ${LDFLAGS} -o "build/$(NAME)_$(VERSION)_linux_amd64/$(NAME)"
GOARCH=amd64 GOOS="darwin" go build ${LDFLAGS} -o "build/$(NAME)_$(VERSION)_darwin_amd64/$(NAME)"
GOARCH=amd64 GOOS="windows" go build ${LDFLAGS} -o "build/$(NAME)_$(VERSION)_windows_amd64/$(NAME)"
CGO_ENABLED=0 GOARCH=amd64 GOOS="linux" go build ${LDFLAGS} -o "build/$(NAME)_$(VERSION)_linux_amd64/$(NAME)"
CGO_ENABLED=0 GOARCH=amd64 GOOS="darwin" go build ${LDFLAGS} -o "build/$(NAME)_$(VERSION)_darwin_amd64/$(NAME)"
CGO_ENABLED=0 GOARCH=amd64 GOOS="windows" go build ${LDFLAGS} -o "build/$(NAME)_$(VERSION)_windows_amd64/$(NAME)"

package: xbuild
$(eval FILES := $(shell ls build))
Expand Down

0 comments on commit 3bd8698

Please sign in to comment.