diff --git a/mk/cmd.mk b/mk/cmd.mk index 865d9988..12b3ba03 100644 --- a/mk/cmd.mk +++ b/mk/cmd.mk @@ -36,7 +36,7 @@ _check_scheme_loader: fi $(CMD): $(SRCS) $(CMD_DEPS) _check_scheme_loader _check_version - go build -o $(CMD) -ldflags \ + CGO_ENABLED=1 go build -o $(CMD) -ldflags \ "-X 'github.com/veraison/services/config.Version=$(VERSION_FROM_GIT)' \ -X 'github.com/veraison/services/config.SchemeLoader=$(SCHEME_LOADER)'" diff --git a/mk/plugin.mk b/mk/plugin.mk index 3402eb73..12480bcd 100644 --- a/mk/plugin.mk +++ b/mk/plugin.mk @@ -22,7 +22,7 @@ else DFLAGS := endif -$(PLUGIN): $(SRCS) ; go build $(DFLAGS) -o $(PLUGIN) +$(PLUGIN): $(SRCS) ; CGO_ENABLED=1 go build $(DFLAGS) -o $(PLUGIN) .PHONY: all all: all-hook-pre realall