summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-08-27 13:47:08 -0700
committerKhem Raj <raj.khem@gmail.com>2023-08-27 13:50:00 -0700
commitd81f23fc234c346e47c20879bb916e585c5670d8 (patch)
treebe0150a29b4dc3189b479a1a9647070dec4e11b9
parent0c0e5e215d856610a5f03012b8263727556f2f83 (diff)
downloadmeta-openembedded-d81f23fc234c346e47c20879bb916e585c5670d8.tar.gz
python3-m2crypto: Append architecture to SWIG_FEATURES instead of overriding
For x86/x32 it was overwriting SWIG_FEATURES, its better to append it like for other arches, in addition it brings essential options to remove buildpaths from .so files. Use OPENSSL_NO_FILENAMES define instead of overrding OPENSSL_FILE for achieving reproducibility. Takes care of line numbers too. Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb
index ac6277306..d47ec2bac 100644
--- a/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb
+++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb
@@ -31,15 +31,15 @@ RDEPENDS:${PN} += "\
31DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}" 31DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}"
32DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}" 32DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}"
33 33
34SWIG_FEATURES:x86 = "-D__i386__" 34SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES"
35SWIG_FEATURES:x32 = "-D__ILP32__"
36
37SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_FILE='openssl/macros.h'"
38 35
39SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" 36SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
40SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" 37SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
41SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" 38SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}"
42SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__" 39SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__"
40SWIG_FEATURES:append:x86 = " -D__i386__"
41SWIG_FEATURES:append:x32 = " -D__ILP32__"
42
43export SWIG_FEATURES 43export SWIG_FEATURES
44 44
45export STAGING_DIR 45export STAGING_DIR