[OE-core] [PATCH] openssl: use nativeperl to build
Hongxu Jia
hongxu.jia at windriver.com
Thu Oct 11 09:55:11 UTC 2018
If host perl is old version (such as perl v5.16.3 on CentOS-7.5),
the openssl-native failed at do_install, the reason is its Makefile
is not correct which is generated at do_configure by perl script.
Use nativeperl to assure latest perl on host for openssl build.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-connectivity/openssl/openssl_1.1.1.bb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
index 5a43a15..52d4e60 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
@@ -23,7 +23,7 @@ SRC_URI_append_class-nativesdk = " \
SRC_URI[md5sum] = "7079eb017429e0ffb9efb42bf80ccb21"
SRC_URI[sha256sum] = "2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d"
-inherit lib_package multilib_header ptest
+inherit lib_package multilib_header ptest perlnative
#| ./libcrypto.so: undefined reference to `getcontext'
#| ./libcrypto.so: undefined reference to `setcontext'
@@ -105,7 +105,9 @@ do_configure () {
fi
# WARNING: do not set compiler/linker flags (-I/-D etc.) in EXTRA_OECONF, as they will fully replace the
# environment variables set by bitbake. Adjust the environment variables instead.
- perl ./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
+ export PERL="nativeperl"
+ /usr/bin/env nativeperl ./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} \
+ --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
}
do_install () {
--
2.7.4
More information about the Openembedded-core
mailing list