[oe-commits] [openembedded-core] 04/43: liburcu: Explicitly add pthread options to cflags

git at git.openembedded.org git at git.openembedded.org
Sat Mar 10 03:47:26 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a65df8159e4de3b78a2886cced3b1b5d546fc1b6
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Fri Mar 9 12:29:06 2018 -0800

    liburcu: Explicitly add pthread options to cflags
    
    Some architectures e.g. riscv gcc does not add -D_REENTRANT
    when enabling pthreads. Help it here by adding these options
    while gcc gets fixed
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-support/liburcu/liburcu_0.10.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-support/liburcu/liburcu_0.10.1.bb b/meta/recipes-support/liburcu/liburcu_0.10.1.bb
index 0c8cd35..459c04a 100644
--- a/meta/recipes-support/liburcu/liburcu_0.10.1.bb
+++ b/meta/recipes-support/liburcu/liburcu_0.10.1.bb
@@ -15,3 +15,5 @@ SRC_URI[sha256sum] = "9c09220be4435dc27fcd22d291707b94b97f159e0c442fbcd60c168f8f
 
 S = "${WORKDIR}/userspace-rcu-${PV}"
 inherit autotools
+
+CPPFLAGS_append_riscv64  = " -pthread -D_REENTRANT"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list