Skip to contentSkip to conversation

protobuf: Fix ptest compilation

PATCH In review Oleksiy Obitotskyy 2 participants 3 messages Apr 16, 2019 – May 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 protobuf: Fix ptest compilation

Tests require c++11 support, so add -std=c++11
to compiler flags.

Upstream-Status: Pending

---
 meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb +2 -2
index cf72d9ca7..4791e13ca 100644
@@ -40,8 +40,8 @@ do_compile_ptest() {
 	# which haven't been installed yet.
 	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
 	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Cflags:|Cflags: -std=c++11 -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Libs:|Libs: -std=c++11 -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
 	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
 
 	# Save the pkgcfg sysroot variable, and update it to nothing so
Signature · 1 line
2.19.1
#1 lore raw

Any comments?

Regards,
Oleksiy

Quoted 24 lines · Oleksiy Obitotskyy

Tests require c++11 support, so add -std=c++11
to compiler flags.

Upstream-Status: Pending

---
 meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb +2 -2
index cf72d9ca7..4791e13ca 100644
@@ -40,8 +40,8 @@ do_compile_ptest() {
 	# which haven't been installed yet.
 	cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
 	sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
-	sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Cflags:|Cflags: -std=c++11 -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
+	sed -e 's|Libs:|Libs: -std=c++11 -L${B}/src/.libs|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
 	export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
 
 	# Save the pkgcfg sysroot variable, and update it to nothing so
#2 lore raw
Quoted 1 line · On Thu, 2019-05-16 at 08:32 +0000, Oleksiy Obitotskyi -X (oobitots…

Any comments?

meta-oe changes need to go to openembedded-devel, not openembedded- core.

Cheers,

Richard