Skip to contentSkip to conversation

python-cryptography: Move linker flag to .inc

PATCH In review [email protected] 2 participants 2 messages Apr 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python-cryptography: Move linker flag to .inc

From: Chris Garren <[email protected]>

Move the -pthread linker flag to the .inc file because it is needed for python 2 & 3.

---
 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(-)
meta-python/recipes-devtools/python/python-cryptography.inc +2 -0
index 2c1ac1c..d7e5ae9 100644
@@ -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 \
meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb +0 -2
index 1959233..f64e51d 100644
@@ -1,8 +1,6 @@
 inherit pypi setuptools3
 require python-cryptography.inc
 
-LDSHARED += "-pthread"
-
 SRC_URI += " \
     file://run-ptest \
 "
Signature · 1 line
2.7.4
#1 lore raw
Quoted 30 lines · On Mon, Apr 8, 2019 at 6:29 AM <[email protected]> wrote:

From: Chris Garren <[email protected]>

Move the -pthread linker flag to the .inc file because it is needed for python 2 & 3.

---
 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(-)
meta-python/recipes-devtools/python/python-cryptography.inc +2 -0
index 2c1ac1c..d7e5ae9 100644
@@ -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 \
meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb +0 -0
index 1959233..f64e51d 100644

meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb line 6

Quoted 8 lines
meta-python/recipes-devtools/python/python3-cryptography_2.4.1.bb +0 -2
@@ -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