Skip to content

Commit f160ce9

Browse files
committedDec 18, 2018
fix(build): enable cgo
1 parent f8cdfe1 commit f160ce9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ MOD_FLAGS := $(shell (go version | grep -q 1.11) && echo -mod=vendor)
66
all: clean test build
77

88
$(CMDS):
9-
CGO_ENABLE=0 go build $(MOD_FLAGS) -tags json1 $(extra_flags) -o $@ ./cmd/$(shell basename $@)
9+
go build $(MOD_FLAGS) -tags json1 $(extra_flags) -o $@ ./cmd/$(shell basename $@)
1010

1111
build: clean $(CMDS)
1212

13-
static: envs=CGO_ENABLE=0
1413
static: extra_flags=-ldflags '-w -extldflags "-static"'
1514
static: build
1615

0 commit comments

Comments
 (0)
Please sign in to comment.