kumquat-buildroot/package/protobuf-c/protobuf-c.mk
Fabrice Fontaine 8b990639b6 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>
2018-06-24 14:47:02 +02:00

24 lines
789 B
Makefile

################################################################################
#
# protobuf-c
#
################################################################################
PROTOBUF_C_VERSION = v1.3.0
PROTOBUF_C_SITE = $(call github,protobuf-c,protobuf-c,$(PROTOBUF_C_VERSION))
PROTOBUF_C_DEPENDENCIES = host-protobuf-c
HOST_PROTOBUF_C_DEPENDENCIES = host-protobuf host-pkgconf
PROTOBUF_C_MAKE = $(MAKE1)
PROTOBUF_C_CONF_OPTS = --disable-protoc
PROTOBUF_C_INSTALL_STAGING = YES
PROTOBUF_C_LICENSE = BSD-2-Clause
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))