From 20a8911a04c7578044a1a3ae26610fb4cf4e1657 Mon Sep 17 00:00:00 2001 From: Kristoffer Gryte Date: Thu, 26 Apr 2018 19:48:10 +0200 Subject: [PATCH] rules/opencv: symlink libopencv_* to /lib/, for cross-compilation of DUNE --- rules/opencv/default.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rules/opencv/default.bash b/rules/opencv/default.bash index 245d2f8..812d51e 100644 --- a/rules/opencv/default.bash +++ b/rules/opencv/default.bash @@ -63,6 +63,11 @@ host_install() { cd ${pkg_build_dir}/../build && $cmd_make install + + # make available for cross compilation + for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libopencv*so*; do + ln -s -f "$f" "$cfg_dir_toolchain/lib" + done } target_install()