From 5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 14 Nov 2020 14:33:23 +0100 Subject: [PATCH] libjson-c: enable rpath for host builds to fix errors on recent macOS Same approach as on libubox Signed-off-by: Felix Fietkau --- package/libs/libjson-c/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2