mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-12 01:30:46 +00:00
1. Keep '-std=c++11' and '-std=gnu99' to fix native build error with old gcc (such as gcc 5.4.0 on ubuntu 16.04); for clang, remove them through setting GRPC_PYTHON_CFLAGS at do_compile in bb recipe 2. While export CC="gcc ", cc_args is empty, it will cause subprocess.Popen always return 1. On centos 8, if you don't install package libatomic, there will be a native build error `cannot find /usr/lib64/libatomic.so.1.2.0'. Add no harm '-g' to cc_args if cc_args is empty. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
33 lines
959 B
BlitzBasic
33 lines
959 B
BlitzBasic
DESCRIPTION = "Google gRPC"
|
|
HOMEPAGE = "http://www.grpc.io/"
|
|
SECTION = "devel/python"
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
|
|
|
DEPENDS += "${PYTHON_PN}-protobuf"
|
|
|
|
SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch"
|
|
SRC_URI_append_class-target = " file://ppc-boringssl-support.patch \
|
|
file://riscv64_support.patch \
|
|
"
|
|
SRC_URI[md5sum] = "ccaf4e7eb4f031d926fb80035d193b98"
|
|
SRC_URI[sha256sum] = "a899725d34769a498ecd3be154021c4368dd22bdc69473f6ec46779696f626c4"
|
|
|
|
RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \
|
|
${PYTHON_PN}-setuptools \
|
|
${PYTHON_PN}-six \
|
|
"
|
|
|
|
inherit setuptools3
|
|
inherit pypi
|
|
|
|
export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"
|
|
|
|
do_compile_prepend_toolchain-clang() {
|
|
export GRPC_PYTHON_CFLAGS='-fvisibility=hidden -fno-wrapv -fno-exceptions'
|
|
}
|
|
|
|
CLEANBROKEN = "1"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|