diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-11-14 14:33:23 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-11-14 14:48:30 +0100 |
commit | 5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f (patch) | |
tree | e0fcaf7fca0c16d458891f7492772bd70fb156b1 /package/libs | |
parent | 6c2ef55e6963d6ae36c4f9c85adaf7fe7aa1f369 (diff) | |
download | upstream-5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f.tar.gz upstream-5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f.tar.bz2 upstream-5752ccb60f30314b0e77d12d7cbc46fdcaf57f0f.zip |
libjson-c: enable rpath for host builds to fix errors on recent macOS
Same approach as on libubox
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/libs')
-rw-r--r-- | package/libs/libjson-c/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
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 |