protobuf-c: Fix host binary
[feed/packages.git] / libs / protobuf-c / Makefile
index 1f146d6d02cc17cc6e242f8a118370f04a8b0013..c94348ceaf0428a2c67f9fa4725f64b7352bd783 100644 (file)
@@ -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