Permalink
Browse files

Merge pull request #3 from marramgrass/link-crypt

Don't use -lcrypt on OS X
  • Loading branch information...
2 parents 4a7ddb9 + 593cb00 commit 1f2b58927ab57e72910191a7ebaeff984382a1d3 @msantos committed on GitHub Dec 15, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 c_src/Makefile
View
@@ -23,17 +23,18 @@ ifeq ($(UNAME_SYS), Darwin)
else ifeq ($(UNAME_SYS), FreeBSD)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
else ifeq ($(UNAME_SYS), Linux)
CC ?= cc
CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
- LDFLAGS ?= -lpthread
+ LDFLAGS ?= -lpthread -lcrypt
endif
CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
CXXFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
LDLIBS += -L $(ERL_INTERFACE_LIB_DIR) -lerl_interface -lei
-LDFLAGS += -lcrypt -shared
+LDFLAGS += -shared
# Verbosity.

0 comments on commit 1f2b589

Please sign in to comment.