From b0af0507b60bc853019013757c096f85da118ebc Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 11 Apr 2022 08:53:04 -0400 Subject: [PATCH] fix: do not export all symbols in windows --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cdc961f27..0a4d2cd03 100644 --- a/Makefile +++ b/Makefile @@ -21,8 +21,7 @@ ifeq ($(detected_OS),Darwin) GOBIN_SHARED_LIB_CFLAGS=CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 endif else ifeq ($(detected_OS),Windows) - # on Windows need `--export-all-symbols` flag else expected symbols will not be found in libstatus.dll - GOBIN_SHARED_LIB_CGO_LDFLAGS := CGO_LDFLAGS="-Wl,--export-all-symbols" + GOBIN_SHARED_LIB_CGO_LDFLAGS := CGO_LDFLAGS="" GOBIN_SHARED_LIB_EXT := dll else GOBIN_SHARED_LIB_EXT := so