From 0ab3dada13aec1b59adf9bb788ee8e38bff5c3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= <ahf@0x90.dk> Date: Thu, 6 Oct 2016 00:29:12 +0200 Subject: [PATCH] Link against brew's OpenSSL on macOS. --- c_src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_src/Makefile b/c_src/Makefile index 3cc9c5d..334f22e 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -18,9 +18,9 @@ C_SRC_OUTPUT ?= $(CURDIR)/../priv/$(PROJECT).so UNAME_SYS := $(shell uname -s) ifeq ($(UNAME_SYS), Darwin) CC ?= cc - CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes -I /usr/local/include + CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes -I /usr/local/include -I /usr/local/opt/openssl/include CXXFLAGS ?= -O3 -arch x86_64 -Wall - LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress -L /usr/local/lib + LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress -L /usr/local/lib -L /usr/local/opt/openssl/lib else ifeq ($(UNAME_SYS), FreeBSD) CC ?= cc CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -- GitLab