aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libubox/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-08-14 23:54:59 +0200
committerJo-Philipp Wich <jo@mein.io>2018-08-14 23:54:59 +0200
commit5762efd8b29d68e219fc9d00b681269727cbf5d5 (patch)
treed99afc3b94b4e76aac4b1b014bd76088a6593204 /package/libs/libubox/Makefile
parente2791e80cbfff243377e7b278a597d42a328ccda (diff)
downloadupstream-5762efd8b29d68e219fc9d00b681269727cbf5d5.tar.gz
upstream-5762efd8b29d68e219fc9d00b681269727cbf5d5.tar.bz2
upstream-5762efd8b29d68e219fc9d00b681269727cbf5d5.zip
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 <jo@mein.io>
Diffstat (limited to 'package/libs/libubox/Makefile')
-rw-r--r--package/libs/libubox/Makefile3
1 files changed, 3 insertions, 0 deletions
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))