From: Jo-Philipp Wich Date: Tue, 14 Aug 2018 21:54:59 +0000 (+0200) Subject: libubox: set RPATH for host build X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5762efd8b29d68e219fc9d00b681269727cbf5d5;p=openwrt%2Fstaging%2Frmilecki.git libubox: set RPATH for host build This is required for programs that indirectly link libjson-c through the libubox blobmsg_json library. Signed-off-by: Jo-Philipp Wich --- diff --git a/package/libs/libubox/Makefile b/package/libs/libubox/Makefile index 853e4e94c3c..a0e75f936c9 100644 --- a/package/libs/libubox/Makefile +++ b/package/libs/libubox/Makefile @@ -97,6 +97,9 @@ endef CMAKE_HOST_OPTIONS += \ -DBUILD_LUA=OFF \ -DBUILD_EXAMPLES=OFF \ + -DCMAKE_SKIP_RPATH=FALSE \ + -DCMAKE_MACOSX_RPATH=1 \ + -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \ $(eval $(call BuildPackage,libubox)) $(eval $(call BuildPackage,libblobmsg-json))