From ade47c0a224319f30c796147f514fb330e5fff55 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Thu, 11 Apr 2019 23:25:27 +0200 Subject: [PATCH] ci: enable cgo for linux native lib release Signed-off-by: Alexander Bezzubov --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0c82e8a3..fb978eb8 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ $(DARWIN_SHARED_LIB): $(LINUX_SHARED_LIB): mkdir -p $(LINUX_DIR) && \ - GOOS=linux GOARCH=amd64 go build -buildmode=c-shared -o $(LINUX_SHARED_LIB) $(NATIVE_LIB) && \ + CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -buildmode=c-shared -o $(LINUX_SHARED_LIB) $(NATIVE_LIB) && \ mv $(LINUX_DIR)/$(HEADER_FILE) $(RESOURCES_DIR)/$(HEADER_FILE) .PHONY: benchmarks benchmarks-samples benchmarks-slow