aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-08-14 23:54:59 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-09-04 00:09:03 +0200
commit13dccfc8e4e85821b72f46e5d9f839ad9f412ebb (patch)
tree3b04bae7a3fe1147c8f724659a4ee396ece14a24 /package/libs
parent456f88376a8080db3c91134f906e4351f220e4a5 (diff)
downloadupstream-13dccfc8e4e85821b72f46e5d9f839ad9f412ebb.tar.gz
upstream-13dccfc8e4e85821b72f46e5d9f839ad9f412ebb.tar.bz2
upstream-13dccfc8e4e85821b72f46e5d9f839ad9f412ebb.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> (cherry picked from commit 5762efd8b29d68e219fc9d00b681269727cbf5d5)
Diffstat (limited to 'package/libs')
-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))