Skip to content
This repository was archived by the owner on Apr 4, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ ERL_LDFLAGS ?= -L$(ERL_EI_LIBDIR)
CFLAGS ?= -O2 -Wall -Wextra
LDFLAGS += -fPIC -shared -lsodium -lei -lerl_interface

ifeq ($(CROSSCOMPILE),)
ifeq ($(shell uname),FreeBSD)
CFLAGS += -I/usr/local/include/sodium
LDFLAGS += -L/usr/local/lib
endif

ifeq ($(CROSSCOMPILE),)
CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib

ifeq ($(shell uname),Darwin)
LDFLAGS += -Wl,-rpath /usr/local/lib -flat_namespace -undefined suppress
Expand Down