From 1b579f2666a0d3d1076540c7c15714e6ec773df5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 3 Apr 2015 22:56:54 +0200 Subject: fix host compile of openssl/wget on Darwin --- package/openssl/Makefile | 4 ++++ package/wget/Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/openssl/Makefile b/package/openssl/Makefile index a6a6968c9..535f5cac0 100644 --- a/package/openssl/Makefile +++ b/package/openssl/Makefile @@ -65,7 +65,11 @@ CONFIG:= linux-embedded endif host-configure: +ifneq ($(OStype),Darwin) (cd $(WRKBUILD); ./config --prefix='$(STAGING_HOST_DIR)/usr' -fPIC) +else + (cd $(WRKBUILD); OPTIMIZATION_FLAGS="-fPIC" ./Configure darwin64-x86_64-cc --prefix='$(STAGING_HOST_DIR)/usr') +endif host-build: (cd $(WRKBUILD); make) diff --git a/package/wget/Makefile b/package/wget/Makefile index 4dc27527d..17eac1cb5 100644 --- a/package/wget/Makefile +++ b/package/wget/Makefile @@ -46,7 +46,7 @@ endif HOST_CONFIGURE_ARGS+= --with-ssl=openssl \ --with-openssl=yes \ - --with-libssl-prefix=$(STAGING_HOST_DIR) + --with-libssl-prefix=$(STAGING_HOST_DIR)/usr wget-install: ${INSTALL_DIR} ${IDIR_WGET}/etc ${IDIR_WGET}/usr/bin -- cgit v1.2.3