Author: nbd
Date: 2014-10-20 11:17:56 +0200 (Mon, 20 Oct 2014)
New Revision: 42995

Modified:
   trunk/include/prereq-build.mk
Log:
prereq-build: replace the openssl command check with a check for headers

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

Modified: trunk/include/prereq-build.mk
===================================================================
--- trunk/include/prereq-build.mk       2014-10-20 06:48:51 UTC (rev 42994)
+++ trunk/include/prereq-build.mk       2014-10-20 09:17:56 UTC (rev 42995)
@@ -168,8 +168,13 @@
        Please install the subversion client. \
 ))
 
-$(eval $(call RequireCommand,openssl, \
-       Please install openssl. \
+define Require/openssl
+       echo 'int main(int argc, char **argv) { SSL_library_init(); return 0; 
}' | \
+               gcc -include openssl/ssl.h -x c -o $(TMP_DIR)/a.out - -lcrypto 
-lssl
+endef
+
+$(eval $(call Require,openssl, \
+       Please install openssl (with development headers) \
 ))
 
 define Require/gnu-find
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to