[oe] [meta-python][PATCH v2] python-cryptography: Move linker flag to .inc

Khem Raj raj.khem at gmail.com
Mon Apr 8 18:33:34 UTC 2019


On Mon, Apr 8, 2019 at 6:29 AM <chris.d.garren at gmail.com> wrote:
>
> From: Chris Garren <cdgarren at indesign-llc.com>
>
> Move the -pthread linker flag to the .inc file because it is
> needed for python 2 & 3.
>
> Signed-off-by: Chris Garren <cdgarren at indesign-llc.com>
> ---
>  meta-python/recipes-devtools/python/python-cryptography.inc       | 2 ++
>  meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb | 2 --
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-python/recipes-devtools/python/python-cryptography.inc b/meta-python/recipes-devtools/python/python-cryptography.inc
> index 2c1ac1c..d7e5ae9 100644
> --- a/meta-python/recipes-devtools/python/python-cryptography.inc
> +++ b/meta-python/recipes-devtools/python/python-cryptography.inc
> @@ -3,6 +3,8 @@ HOMEPAGE = "https://cryptography.io/"
>  LICENSE = "Apache-2.0 | BSD"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=097f805837700cfac572ac274cd38124"
>
> +LDSHARED += "-pthread"
> +
>  DEPENDS += " \
>      ${PYTHON_PN}-cffi \
>      ${PYTHON_PN}-cffi-native \
> diff --git a/meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb b/meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb
> index 1959233..f64e51d 100644
> --- a/meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb
> +++ b/meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb
> @@ -1,8 +1,6 @@
>  inherit pypi setuptools3
>  require python-cryptography.inc
>
> -LDSHARED += "-pthread"
> -
>  SRC_URI += " \
>      file://run-ptest \
>  "

I had to munge it a bit.
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=2be016ee8f5260f67edcfe434ed70569fced56e0


More information about the Openembedded-devel mailing list