protobuf: Fix ptest compilation
PATCH 1/1 protobuf: Fix ptest compilation
Tests require c++11 support, so add -std=c++11
to compiler flags.
Upstream-Status: Pending
Signed-off-by Oleksiy Obitotskyy <[email protected]>
--- 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
@@ -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
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
Signed-off-by Oleksiy Obitotskyy <[email protected]>--- 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@@ -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
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