Some host tools needs the host openssl headers in place, e.g.
U-Boot's mkimage. We could try to make this check configuration
dependent but I think it's not worth it.
Also the check might be smarter - but it just works :-)

Signed-off-by: Michael Heimpold <m...@heimpold.de>
---
 include/prereq-build.mk |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index cb23f85..2bfc46a 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -172,6 +172,15 @@ $(eval $(call RequireCommand,openssl, \
        Please install openssl. \
 ))
 
+define Require/libssl-dev
+       echo 'int main(int argc, char **argv) { OpenSSL_add_all_ciphers(); 
return 0; }' | \
+               gcc -include openssl/evp.h -x c -o $(TMP_DIR)/a.out - -lssl 
-lcrypto
+endef
+
+$(eval $(call Require,libssl-dev, \
+       Please install openssl development headers (e.g. 'apt-get install 
libssl-dev'). \
+))
+
 define Require/gnu-find
        $(FIND) --version 2>/dev/null
 endef
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to