fix: static linking negentropy in ARM based mac (#3046)

This commit is contained in:
gabrielmer 2024-09-20 15:41:27 +03:00 committed by Gabriel mermelstein
parent 26a488d522
commit bbebbf6d4f
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

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