diff --git a/libs/protobuf-c/Makefile b/libs/protobuf-c/Makefile index 1f146d6d0..c94348cea 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