mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
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>
This commit is contained in:
@@ -28,12 +28,16 @@ S = "${WORKDIR}/Net-SSLeay-${PV}"
|
|||||||
|
|
||||||
inherit cpan ptest
|
inherit cpan ptest
|
||||||
|
|
||||||
EXTRA_CPANFLAGS = "LIBS='-L=${libdir} -L=${base_libdir}' \
|
EXTRA_CPANFLAGS = "LIBS='-L=${STAGING_LIBDIR} -L=${STAGING_BASELIBDIR}' \
|
||||||
INC=-I=${includedir} \
|
INC=-I=${STAGING_INCDIR} \
|
||||||
'EXTRALIBS=-lssl -lcrypto -lz' \
|
'EXTRALIBS=-lssl -lcrypto -lz' \
|
||||||
'LDLOADLIBS=-lssl -lcrypto -lz' \
|
'LDLOADLIBS=-lssl -lcrypto -lz' \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
export OPENSSL_PREFIX=${STAGING_DIR_NATIVE}${prefix_native}
|
||||||
|
}
|
||||||
|
|
||||||
do_install_ptest() {
|
do_install_ptest() {
|
||||||
cp -r ${B}/t ${D}${PTEST_PATH}
|
cp -r ${B}/t ${D}${PTEST_PATH}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user