From 489211541652efd9c6b02cd2ec143f49c31a435a Mon Sep 17 00:00:00 2001 From: Alfredo Beaumont Date: Thu, 28 Sep 2017 18:07:55 +0200 Subject: [PATCH] build: Fix cross compilation of darwin shared library --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f1c332..6904f7c 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ darwin-shared: $(DARWIN_SHARED_LIB) $(DARWIN_SHARED_LIB): mkdir -p $(DARWIN_DIR) && \ - GOOS=darwin GOARCH=amd64 go build -buildmode=c-shared -o $(DARWIN_SHARED_LIB) $(NATIVE_LIB) && \ + CC="o64-clang" CXX="o64-clang++" CGO_ENABLED=1 GOOS=darwin go build -buildmode=c-shared -o $(DARWIN_SHARED_LIB) $(NATIVE_LIB) && \ mv $(DARWIN_DIR)/$(HEADER_FILE) $(RESOURCES_DIR)/$(HEADER_FILE) $(LINUX_SHARED_LIB):