diff mbox series

[meta-python] python3-grpcio: Define -D_LARGEFILE64_SOURCE only for musl

Message ID 20221231080018.3097679-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python] python3-grpcio: Define -D_LARGEFILE64_SOURCE only for musl | expand

Commit Message

Khem Raj Dec. 31, 2022, 8 a.m. UTC
On glibc this breaks build when using 64bit time_t since zlib ends up
undefining _FILE_OFFSET_BITS when -D_LARGEFILE64_SOURCE is defined

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb
index 9a3c3734ac..b0971db1cc 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb
+++ b/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb
@@ -22,7 +22,7 @@  RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \
 inherit setuptools3
 inherit pypi
 
-CFLAGS += "-D_LARGEFILE64_SOURCE"
+CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
 
 export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"