Browse Source

build: include homebrew include/library directory in cflags/ldflags on mac os x

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 47139
Felix Fietkau 10 years ago
parent
commit
48374a3a9c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      include/host-build.mk

+ 5 - 0
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)" \