Skip to content

Commit

Permalink
package/python-pycryptodomex: fix package build with gcc 4.8
Browse files Browse the repository at this point in the history
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 <[email protected]>
[[email protected]: use TARGET/HOST_CFLAGS]
Signed-off-by: Yann E. MORIN <[email protected]>
  • Loading branch information
Oleg Lyovin authored and yann-morin-1998 committed Oct 28, 2023
1 parent 836a11a commit 3c6f3af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/python-pycryptodomex/python-pycryptodomex.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 3c6f3af

Please sign in to comment.