Skip to contentSkip to conversation

host-protobuf-c: fix build with gcc 4.8

PATCH New Fabrice Fontaine 2 participants 2 messages Jun 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/protobuf-c/protobuf-c.mk | 3 +++
 1 file changed, 3 insertions(+)
package/protobuf-c/protobuf-c.mk +3 -0
index 4306610533..34f8294412 100644
@@ -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))
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 host-protobuf-c: fix build with gcc 4.8

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard