diff options
author | Kang Kai <kai.kang@windriver.com> | 2014-12-01 15:32:44 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2014-12-26 17:56:55 -0800 |
commit | 3cac29682c1b0a7aa51ebb26fd87d4747292d2d4 (patch) | |
tree | 441fd1c9b809e107a701c4d694f3a77234052813 /meta-perl | |
parent | 7c58d49071052b1acb6128024029d0279cade876 (diff) | |
download | meta-openembedded-3cac29682c1b0a7aa51ebb26fd87d4747292d2d4.tar.gz |
libnet-ssleay-perl: avoid host contamination
Check the configure log, libnet-ssleay-perl uses host's openssl:
*** Found OpenSSL-1.0.1 installed in /usr
Export OPENSSL_PREFIX to find the native openssl to use.
Replace library pathes '/lib', '/usr/lib' and header path with correct
staging pathes at same time.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-perl')
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb index 63594b94b2..f6c4b8b36c 100644 --- a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb +++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb @@ -28,12 +28,16 @@ S = "${WORKDIR}/Net-SSLeay-${PV}" inherit cpan ptest -EXTRA_CPANFLAGS = "LIBS='-L=${libdir} -L=${base_libdir}' \ - INC=-I=${includedir} \ +EXTRA_CPANFLAGS = "LIBS='-L=${STAGING_LIBDIR} -L=${STAGING_BASELIBDIR}' \ + INC=-I=${STAGING_INCDIR} \ 'EXTRALIBS=-lssl -lcrypto -lz' \ 'LDLOADLIBS=-lssl -lcrypto -lz' \ " +do_configure_prepend() { + export OPENSSL_PREFIX=${STAGING_DIR_NATIVE}${prefix_native} +} + do_install_ptest() { cp -r ${B}/t ${D}${PTEST_PATH} } |