mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
libpcre_selinux.inc: fix do_install failure if .so file does not exist
In case of the existence of meta-mingw, the library is .dll instead of
.so and these .dll files are in ${bindir}.
We need to check the existence of the .so file before doing readlink,
otherwise do_install fails.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
parent
7343f3ed39
commit
7e15c99ef1
|
|
@ -1,5 +1,5 @@
|
|||
do_install_append () {
|
||||
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
|
||||
if [ ! ${D}${libdir} -ef ${D}${base_libdir} -a -e ${D}${libdir}/libpcre.so ]; then
|
||||
realsofile=`readlink ${D}${libdir}/libpcre.so`
|
||||
mkdir -p ${D}/${base_libdir}/
|
||||
mv -f ${D}${libdir}/libpcre.so.* ${D}${base_libdir}/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user