Browse Source

protobuf-c: fix host build on GCC4

prereq-build.mk says that GCC 4.8 and above is supported. GCC 4.8
does not default to gnu++11. This fixes compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
499564b1d1
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libs/protobuf-c/Makefile

+ 1
- 0
libs/protobuf-c/Makefile View File

@ -48,6 +48,7 @@ endef
CMAKE_HOST_OPTIONS += \ CMAKE_HOST_OPTIONS += \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_SKIP_RPATH=OFF \ -DCMAKE_SKIP_RPATH=OFF \
-DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib" -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib"


Loading…
Cancel
Save