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>
This commit is contained in:
Jo-Philipp Wich 2018-08-14 23:54:59 +02:00
parent e2791e80cb
commit 5762efd8b2

View file

@ -97,6 +97,9 @@ endef
CMAKE_HOST_OPTIONS += \ CMAKE_HOST_OPTIONS += \
-DBUILD_LUA=OFF \ -DBUILD_LUA=OFF \
-DBUILD_EXAMPLES=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,libubox))
$(eval $(call BuildPackage,libblobmsg-json)) $(eval $(call BuildPackage,libblobmsg-json))