diff --git a/Makefile b/Makefile index ec715cef4..6fcd6d5c4 100644 --- a/Makefile +++ b/Makefile @@ -17,14 +17,10 @@ endif ifeq ($(detected_OS),Darwin) GOBIN_SHARED_LIB_EXT := dylib - # Building on M1 is still not supported, so in the meantime we crosscompile by default to amd64 - ifeq ("$(shell sysctl -nq hw.optional.arm64)","1") - FORCE_ARCH ?= amd64 - GOBIN_SHARED_LIB_CFLAGS=CGO_ENABLED=1 GOOS=darwin GOARCH=$(FORCE_ARCH) - endif + GOBIN_SHARED_LIB_CFLAGS := CGO_ENABLED=1 GOOS=darwin else ifeq ($(detected_OS),Windows) - GOBIN_SHARED_LIB_CGO_LDFLAGS := CGO_LDFLAGS="" GOBIN_SHARED_LIB_EXT := dll + GOBIN_SHARED_LIB_CGO_LDFLAGS := CGO_LDFLAGS="" else GOBIN_SHARED_LIB_EXT := so GOBIN_SHARED_LIB_CGO_LDFLAGS := CGO_LDFLAGS="-Wl,-soname,libstatus.so.0"