From 499564b1d120a3bbd60886faaa2ac8350b5f68a3 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 23 May 2020 21:16:25 -0700 Subject: [PATCH] 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 --- libs/protobuf-c/Makefile | 1 + 1 file changed, 1 insertion(+) 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"