From 7a2b6bfdb8495479142825bfc27edb12e0db8d89 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 25 Sep 2019 21:35:30 -0700 Subject: [PATCH] protobuf-c: Fix host binary It needs rpath to find libprotoc. Signed-off-by: Rosen Penev --- libs/protobuf-c/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/protobuf-c/Makefile b/libs/protobuf-c/Makefile index 1f146d6d02..c94348ceaf 100644 --- a/libs/protobuf-c/Makefile +++ b/libs/protobuf-c/Makefile @@ -46,6 +46,11 @@ define Package/libprotobuf-c/description internal RPC protocols and file formats. endef +CMAKE_HOST_OPTIONS += \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_SKIP_RPATH=OFF \ + -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib" + CMAKE_OPTIONS += \ -DBUILD_SHARED_LIBS=ON