From patchwork Sat May 7 07:53:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6/8] liburcu_0.5.4.bb: Let it build on uclibc targets Date: Sat, 07 May 2011 07:53:55 -0000 From: Khem Raj X-Patchwork-Id: 3325 Message-Id: <18cc54f29f2e7ee9278f32f0c54a8e270b1aaa47.1304754527.git.raj.khem@gmail.com> To: OE core uclibc requires -D_GNU_SOURCE to be defined for it to enable GNU extensions which CPU_SET/CPU_ZERO are used by this package. So we add -D_GNU_SOURCE to CFLAGS when compiling for uclibc. Signed-off-by: Khem Raj --- meta/recipes-support/liburcu/liburcu_0.5.4.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/meta/recipes-support/liburcu/liburcu_0.5.4.bb b/meta/recipes-support/liburcu/liburcu_0.5.4.bb index 8e17e5d..b83d708 100644 --- a/meta/recipes-support/liburcu/liburcu_0.5.4.bb +++ b/meta/recipes-support/liburcu/liburcu_0.5.4.bb @@ -15,7 +15,7 @@ SRC_URI[md5sum] = "04147d24749be75200173859839207f7" SRC_URI[sha256sum] = "02aedbb16c16bd034e246d5c9637a9232be559c66fc2fe4eb28948e234bd89f1" S = "${WORKDIR}/userspace-rcu-${PV}" - +CFLAGS_append_libc-uclibc = " -D_GNU_SOURCE" inherit autotools # liburcu, which is only used by lttng-ust, may not build on other