Skip to content

Commit 9a20829

Browse files
zshi-redhatahalimx86
authored andcommitted
build cni binary with static libraries (k8snetworkplumbingwg#119)
1 parent e977613 commit 9a20829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ build: $(BUILDDIR)/$(BINARY_NAME) | ; $(info Building $(BINARY_NAME)...)
6363
$(info Done!)
6464

6565
$(BUILDDIR)/$(BINARY_NAME): $(GOFILES) | $(BUILDDIR)
66-
@cd $(BASE)/cmd/$(BINARY_NAME) && $(GO) build $(LDFLAGS) -o $(BUILDDIR)/$(BINARY_NAME) -v
66+
@cd $(BASE)/cmd/$(BINARY_NAME) && CGO_ENABLED=0 $(GO) build $(LDFLAGS) -o $(BUILDDIR)/$(BINARY_NAME) -tags no_openssl -v
6767

6868

6969
# Tools

0 commit comments

Comments
 (0)