HACK yaml-cpp-vendor.inc: Symlink library into libdir

This commit is contained in:
Herb Kuta 2019-06-07 18:48:27 -07:00
parent 6bee18c579
commit cd0672a9da
1 changed files with 8 additions and 0 deletions

View File

@ -20,3 +20,11 @@ FILES_${PN}-dev_prepend = " \
"
INSANE_SKIP_${PN} = "dev-so libdir"
# HACK: Need to figure out how to have "opkg install" look in other directories for libraries to satisfy run-time dependencies.
# The link is removed in ros2_image_rm_vendor_lib_symlinks(), which is appended to ROOTFS_POSTINSTALL_COMMAND in
# ros2_image.bbclass .
pkg_postinst_${PN}() {
mkdir -p $D${libdir}
ln -s ../opt/${ROS_BPN}/lib/libyaml-cpp.so.0.6.2 $D${libdir}/libyaml-cpp.so.0.6
}