]> code.ossystems Code Review - openembedded-core.git/commitdiff
liburcu: Explicitly add pthread options to cflags
authorKhem Raj <raj.khem@gmail.com>
Fri, 9 Mar 2018 20:29:06 +0000 (12:29 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 Mar 2018 13:25:19 +0000 (06:25 -0700)
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@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/liburcu/liburcu_0.10.1.bb

index 0c8cd3571af3551fd2876cd4a11dedc42076a4de..459c04a7a1de7bbd078f6f15fdd50cf09c52c0d1 100644 (file)
@@ -15,3 +15,5 @@ SRC_URI[sha256sum] = "9c09220be4435dc27fcd22d291707b94b97f159e0c442fbcd60c168f8f
 
 S = "${WORKDIR}/userspace-rcu-${PV}"
 inherit autotools
+
+CPPFLAGS_append_riscv64  = " -pthread -D_REENTRANT"