summaryrefslogtreecommitdiff
path: root/package/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'package/openssl')
-rw-r--r--package/openssl/Makefile4
1 files changed, 4 insertions, 0 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)