aboutsummaryrefslogtreecommitdiff
path: root/package/protobuf-c
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-06-24 10:52:19 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-06-24 14:47:02 +0200
commit8b990639b60e71bc91bf4c80d0cdafb990eb13ec (patch)
tree2b8118700288cb5197f363a34d2a74c292b01403 /package/protobuf-c
parent23c91395437febc641f2bd43d90b3344ed90c428 (diff)
downloadbuildroot-8b990639b60e71bc91bf4c80d0cdafb990eb13ec.tar.gz
buildroot-8b990639b60e71bc91bf4c80d0cdafb990eb13ec.tar.bz2
host-protobuf-c: fix build with gcc 4.8
protobuf requires C++11 so add -std=c++11 for host-protobuf-c as it is experimental in gcc 4.8 Fixes: - http://autobuild.buildroot.net/results/7fe12457ccac7e8c95b1d4c1fa20d6753599742d Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/protobuf-c')
-rw-r--r--package/protobuf-c/protobuf-c.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/protobuf-c/protobuf-c.mk b/package/protobuf-c/protobuf-c.mk
index 4306610533..34f8294412 100644
--- a/package/protobuf-c/protobuf-c.mk
+++ b/package/protobuf-c/protobuf-c.mk
@@ -16,5 +16,8 @@ PROTOBUF_C_LICENSE_FILES = LICENSE
PROTOBUF_C_AUTORECONF = YES
HOST_PROTOBUF_C_AUTORECONF = YES
+# host-protobuf needs c++11 (since 3.6.0)
+HOST_PROTOBUF_C_CONF_ENV += CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))