zlib: put shared libraries in base_libdir
We put the shared libraries in base_libdir because at least one library under base_libdir, pam_cracklib.so, needs them and will cause a qa warning when it is built. (From OE-Core rev: ebb8382af892bef8e11fb590292506e1124276c5) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f6d44383a1
commit
6271ac326d
|
@ -6,6 +6,8 @@ SECTION = "libs"
|
|||
LICENSE = "Zlib"
|
||||
LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e66a9"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
|
||||
file://remove.ldconfig.call.patch \
|
||||
"
|
||||
|
@ -24,4 +26,17 @@ do_install() {
|
|||
oe_runmake DESTDIR=${D} install
|
||||
}
|
||||
|
||||
# We move zlib shared libraries for target builds to avoid
|
||||
# qa warnings.
|
||||
#
|
||||
do_install_append_class-target() {
|
||||
if [ ${base_libdir} != ${libdir} ]
|
||||
then
|
||||
mkdir -p ${D}/${base_libdir}
|
||||
mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}
|
||||
tmp=`readlink ${D}/${libdir}/libz.so`
|
||||
ln -sf ../../${base_libdir}/$tmp ${D}/${libdir}/libz.so
|
||||
fi
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
|
Loading…
Reference in New Issue