meta-selinux/recipes-support/libpcre/libpcre_selinux.inc
Yi Zhao 654201e25d meta-selinux: convert to new override syntax
This is the result of automated script conversion:
poky/scripts/contrib/convert-overrides.py meta-selinux

Converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-04 16:18:39 -04:00

19 lines
775 B
PHP

do_install:append () {
# This code creates libpcre for both the dev machine (SDK native)
# and for cross-compiling (machine arch). For Linux (SDK Linux native
# + all machine arch), symlinks to the .so files have to be created,
# but not for the Windows SDK native.
if [ ${TARGET_OS} != "mingw32" ]; 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}/
relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
ln -sf ${relpath}/${realsofile} ${D}${libdir}/libpcre.so
ln -sf ${relpath}/${realsofile} ${D}${libdir}/libpcre.so.1
fi
fi
}
FILES:${PN} += "${base_libdir}/libpcre.so.*"