From: Rosen Penev Date: Sun, 24 May 2020 04:16:25 +0000 (-0700) Subject: protobuf-c: fix host build on GCC4 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=499564b1d120a3bbd60886faaa2ac8350b5f68a3;p=openwrt-packages.git 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 --- diff --git a/libs/protobuf-c/Makefile b/libs/protobuf-c/Makefile index 0a54ea2a6..42d48269d 100644 --- a/libs/protobuf-c/Makefile +++ b/libs/protobuf-c/Makefile @@ -48,6 +48,7 @@ endef CMAKE_HOST_OPTIONS += \ -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_CXX_STANDARD=11 \ -DCMAKE_SKIP_RPATH=OFF \ -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib"