From 256b7853a6405c086b3bd4786b0a828a0715b715 Mon Sep 17 00:00:00 2001 From: gabrielmer <101006718+gabrielmer@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:41:27 +0300 Subject: [PATCH] fix: static linking negentropy in ARM based mac (#3046) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8b1b7be5c..bf6f9b386 100644 --- a/Makefile +++ b/Makefile @@ -186,6 +186,9 @@ negentropy: | $(LIBNEGENTROPY_FILE) ## Pass libnegentropy and it's deps to linker. $(eval LIBNEGENTROPY_PATH := $(shell if [ -f "$(LIBNEGENTROPY_FILE)" ]; then echo "$(LIBNEGENTROPY_FILE)"; else echo "./$(LIBNEGENTROPY_FILE)"; fi)) $(eval NIM_PARAMS += --passL:$(LIBNEGENTROPY_PATH) --passL:-lcrypto --passL:-lssl --passL:-lstdc++) +ifeq ($(detected_OS),Darwin) + $(eval NIM_PARAMS += --passL:-L/opt/homebrew/lib/) +endif negentropy-clean: $(MAKE) -C $(LIBNEGENTROPY_BUILDDIR) clean && \