diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-08-27 13:47:08 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-08-27 13:50:00 -0700 |
commit | d81f23fc234c346e47c20879bb916e585c5670d8 (patch) | |
tree | be0150a29b4dc3189b479a1a9647070dec4e11b9 | |
parent | 0c0e5e215d856610a5f03012b8263727556f2f83 (diff) | |
download | meta-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.bb | 8 |
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} += "\ | |||
31 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}" | 31 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}" |
32 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}" | 32 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}" |
33 | 33 | ||
34 | SWIG_FEATURES:x86 = "-D__i386__" | 34 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES" |
35 | SWIG_FEATURES:x32 = "-D__ILP32__" | ||
36 | |||
37 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_FILE='openssl/macros.h'" | ||
38 | 35 | ||
39 | SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | 36 | SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" |
40 | SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | 37 | SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" |
41 | SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" | 38 | SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" |
42 | SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__" | 39 | SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__" |
40 | SWIG_FEATURES:append:x86 = " -D__i386__" | ||
41 | SWIG_FEATURES:append:x32 = " -D__ILP32__" | ||
42 | |||
43 | export SWIG_FEATURES | 43 | export SWIG_FEATURES |
44 | 44 | ||
45 | export STAGING_DIR | 45 | export STAGING_DIR |