From: Felix Fietkau Date: Sat, 14 Nov 2020 13:33:23 +0000 (+0100) Subject: libjson-c: enable rpath for host builds to fix errors on recent macOS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f;p=openwrt%2Fstaging%2Fjogo.git libjson-c: enable rpath for host builds to fix errors on recent macOS Same approach as on libubox Signed-off-by: Felix Fietkau --- diff --git a/package/libs/libjson-c/Makefile b/package/libs/libjson-c/Makefile index c8a514a147..13cf955960 100644 --- a/package/libs/libjson-c/Makefile +++ b/package/libs/libjson-c/Makefile @@ -27,6 +27,11 @@ include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk +CMAKE_HOST_OPTIONS += \ + -DCMAKE_SKIP_RPATH=FALSE \ + -DCMAKE_MACOSX_RPATH=1 \ + -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" + define Package/libjson-c SECTION:=libs CATEGORY:=Libraries