The openssl can't build with very old perl, such as 5.8.9, so force it
to use the perl-native to avoid host dependence issue.

Signed-off-by: Yue Tao <yue....@windriver.com>
---
 meta/recipes-connectivity/openssl/openssl.inc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc 
b/meta/recipes-connectivity/openssl/openssl.inc
index 1a0031e..6990139 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -30,7 +30,7 @@ export EX_LIBS = "-lgcc -ldl"
 export AS = "${CC} -c"
 EXTRA_OEMAKE = "-e MAKEFLAGS="
 
-inherit pkgconfig siteinfo multilib_header ptest
+inherit pkgconfig siteinfo multilib_header ptest perlnative
 
 PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
 FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}"
@@ -208,6 +208,7 @@ do_install_ptest () {
        mkdir -p ${D}${PTEST_PATH}/util
        install util/opensslwrap.sh    ${D}${PTEST_PATH}/util
        install util/shlib_wrap.sh     ${D}${PTEST_PATH}/util
+       sed -i -e 's#^PERL=.*#PERL= /usr/bin/perl#g' ${D}${PTEST_PATH}/Makefile
 }
 
 do_install_append_class-native() {
-- 
1.7.9.5

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to