From 3c6f3af24db4b79d652874dd6c381ce3d6c5266b Mon Sep 17 00:00:00 2001 From: Oleg Lyovin Date: Fri, 27 Oct 2023 18:52:21 +0300 Subject: [PATCH] package/python-pycryptodomex: fix package build with gcc 4.8 python-pycryptodomex uses C99 features like variable declaration in for-loop statement, while old compilers assumes C89 by default. This patch explicitly specifies C99 standard. Signed-off-by: Oleg Lyovin [yann.morin.1998@free.fr: use TARGET/HOST_CFLAGS] Signed-off-by: Yann E. MORIN --- package/python-pycryptodomex/python-pycryptodomex.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/python-pycryptodomex/python-pycryptodomex.mk b/package/python-pycryptodomex/python-pycryptodomex.mk index 3790aa4787..d6eb2a9513 100644 --- a/package/python-pycryptodomex/python-pycryptodomex.mk +++ b/package/python-pycryptodomex/python-pycryptodomex.mk @@ -13,5 +13,8 @@ PYTHON_PYCRYPTODOMEX_LICENSE = \ Public Domain (pycrypto original code) PYTHON_PYCRYPTODOMEX_LICENSE_FILES = LICENSE.rst Doc/LEGAL/COPYRIGHT.pycrypto +PYTHON_PYCRYPTODOMEX_ENV = CFLAGS="$(TARGET_CFLAGS) -std=c99" +HOST_PYTHON_PYCRYPTODOMEX_ENV = CFLAGS="$(HOST_CFLAGS) -std=c99" + $(eval $(python-package)) $(eval $(host-python-package))