summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-04-03 22:56:54 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-04-03 22:56:54 +0200
commit1b579f2666a0d3d1076540c7c15714e6ec773df5 (patch)
treec280fdf3ab1836e74628b6a9b5f38cfde74f565b
parent051031041e439b1d8ea374251b45344cd69224c1 (diff)
fix host compile of openssl/wget on Darwin
-rw-r--r--package/openssl/Makefile4
-rw-r--r--package/wget/Makefile2
2 files changed, 5 insertions, 1 deletions
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