From b476197e5347c84ac414163bcdc9163a1f9add5c Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 5 Oct 2015 14:11:30 +0000 Subject: [PATCH] build: include homebrew include/library directory in cflags/ldflags on mac os x Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47139 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/host-build.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/host-build.mk b/include/host-build.mk index 760d38b371..e2b5f2f8d1 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -50,6 +50,11 @@ define Host/Prepare $(call Host/Prepare/Default) endef +ifeq ($(HOST_OS),Darwin) + HOST_CFLAGS += -I/usr/local/opt/openssl/include + HOST_LDFLAGS += -L/usr/local/opt/openssl/lib +endif + HOST_CONFIGURE_VARS = \ CC="$(HOSTCC)" \ CFLAGS="$(HOST_CFLAGS)" \ -- 2.11.0