python3-m2crypto: Fix build on riscv64
PATCH 1/1 python3-m2crypto: Fix build on riscv64
wordlen is not so easy to calculate on rv64, therefore pass the right ingredients so compiler does the right thing in the end
Signed-off-by Khem Raj <[email protected]>
--- meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb | 1 + 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb +1 -0
@@ -36,6 +36,7 @@ SWIG_FEATURES_x32 = "-D__ILP32__" SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']}" +SWIG_FEATURES_append_riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" export SWIG_FEATURES BBCLASSEXTEND = "native"
Signature · 1 line
2.31.1