From 27035128b7b2cdb13d1b8311f039885e871f643c Mon Sep 17 00:00:00 2001 From: silviu caragea Date: Mon, 15 Apr 2024 23:01:21 +0300 Subject: [PATCH] Fix building osx --- c_src/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c_src/Makefile b/c_src/Makefile index dece3e8..0c47bd1 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -6,11 +6,14 @@ include nif.mk ifeq ($(UNAME_SYS), darwin) OPENSSL_ROOT := $(shell brew --prefix openssl) + LIBUV_ROOT := $(shell brew --prefix libuv) CXXFLAGS += -I$(OPENSSL_ROOT)/include \ + -I$(LIBUV_ROOT)/include \ -I/usr/local/include \ LDFLAGS += -L$(OPENSSL_ROOT)/lib \ + -L$(LIBUV_ROOT)/lib \ -L/usr/local/lib \ -Wl,-U,_enif_alloc \ -Wl,-U,_enif_free \