fix: do not export all symbols in windows

This commit is contained in:
Richard Ramos 2022-04-11 08:53:04 -04:00
parent f639fa4567
commit b0af0507b6

View file

@ -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