Skip to content

Commit

Permalink
Fix building osx
Browse files Browse the repository at this point in the history
  • Loading branch information
silviucpp committed Apr 15, 2024
1 parent f559ac2 commit 2703512
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 2703512

Please sign in to comment.