aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-05 14:11:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-10-05 14:11:30 +0000
commit48374a3a9c555fd0c6b57a239546c6335fab9dc0 (patch)
tree459ce534cef6ad4d366518482af87fc456eb4c01
parent9e670fcf9d436abe28df552eb7bb4cb325e354a9 (diff)
downloadupstream-48374a3a9c555fd0c6b57a239546c6335fab9dc0.tar.gz
upstream-48374a3a9c555fd0c6b57a239546c6335fab9dc0.tar.bz2
upstream-48374a3a9c555fd0c6b57a239546c6335fab9dc0.zip
build: include homebrew include/library directory in cflags/ldflags on mac os x
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47139
-rw-r--r--include/host-build.mk5
1 files changed, 5 insertions, 0 deletions
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)" \