Merge pull request #224 from bzz/ci-fix-linux-shared-release

HOTFIX: enable cgo for linux native lib release on CI
This commit is contained in:
Alexander 2019-04-12 00:14:58 +02:00 committed by GitHub
commit ab3c26b46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ $(DARWIN_SHARED_LIB):
$(LINUX_SHARED_LIB): $(LINUX_SHARED_LIB):
mkdir -p $(LINUX_DIR) && \ 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) mv $(LINUX_DIR)/$(HEADER_FILE) $(RESOURCES_DIR)/$(HEADER_FILE)
.PHONY: benchmarks benchmarks-samples benchmarks-slow .PHONY: benchmarks benchmarks-samples benchmarks-slow