[OE-core] [meta-oe][PATCH] protobuf: Fix ptest compilation

Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco) oobitots at cisco.com
Thu May 16 08:32:53 UTC 2019


Any comments?

Regards,
Oleksiy

On 16.04.19 18:34, Oleksiy Obitotskyy wrote:
> Tests require c++11 support, so add -std=c++11
> to compiler flags.
>
> Upstream-Status: Pending
> Signed-off-by: Oleksiy Obitotskyy <oobitots at 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



More information about the Openembedded-core mailing list