[openwrt/openwrt] libjson-c: enable rpath for host builds to fix errors on recent macOS

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 14 09:22:21 EST 2020


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f

commit 5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sat Nov 14 14:33:23 2020 +0100

    libjson-c: enable rpath for host builds to fix errors on recent macOS
    
    Same approach as on libubox
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 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



More information about the lede-commits mailing list