From 13dccfc8e4e85821b72f46e5d9f839ad9f412ebb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 14 Aug 2018 23:54:59 +0200 Subject: [PATCH] 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 (cherry picked from commit 5762efd8b29d68e219fc9d00b681269727cbf5d5) --- package/libs/libubox/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/libs/libubox/Makefile b/package/libs/libubox/Makefile index 853e4e94c3..a0e75f936c 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)) -- 2.25.1