]> code.ossystems Code Review - openembedded-core.git/commitdiff
liburcu_0.5.4.bb: Let it build on uclibc targets
authorKhem Raj <raj.khem@gmail.com>
Fri, 6 May 2011 05:24:40 +0000 (22:24 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 May 2011 08:51:40 +0000 (09:51 +0100)
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 <raj.khem@gmail.com>
meta/recipes-support/liburcu/liburcu_0.5.4.bb

index 8e17e5db1cd6c03567f9af00369d168d2cec1540..b83d7088095a6c03d17e9d66fabbc0dbeced71d8 100644 (file)
@@ -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