All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] protobuf: Fix ptest compilation
@ 2019-05-16  8:57 Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC@Cisco)
  2019-05-16 11:23 ` Adrian Bunk
  2019-05-18 19:41 ` Khem Raj
  0 siblings, 2 replies; 7+ messages in thread
From: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC@Cisco) @ 2019-05-16  8:57 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

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

Upstream-Status: Pending
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
---
meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
index cf72d9ca7..4791e13ca 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
@@ -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.19.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [meta-oe][PATCH] protobuf: Fix ptest compilation
@ 2019-04-16 15:34 Oleksiy Obitotskyy
  2019-05-16  8:32 ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC@Cisco)
  0 siblings, 1 reply; 7+ messages in thread
From: Oleksiy Obitotskyy @ 2019-04-16 15:34 UTC (permalink / raw)
  To: openembedded-core

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

Upstream-Status: Pending
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
---
 meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
index cf72d9ca7..4791e13ca 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
@@ -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.19.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-05-18 19:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-16  8:57 [meta-oe][PATCH] protobuf: Fix ptest compilation Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC@Cisco)
2019-05-16 11:23 ` Adrian Bunk
2019-05-16 11:43   ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC@Cisco)
2019-05-18 19:41 ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2019-04-16 15:34 Oleksiy Obitotskyy
2019-05-16  8:32 ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC@Cisco)
2019-05-16  8:36   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.