summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-06-13 07:12:38 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-06-20 12:30:06 +0200
commitcd2e0043d8fd009f3230e0c9cdfb63fc84ed9669 (patch)
tree8e6d902fde081888352806e9f0d921b4aa8a8161 /meta-oe
parent475e25491c0265e813a332f8ba3d39dcc1e02b81 (diff)
downloadmeta-openembedded-cd2e0043d8fd009f3230e0c9cdfb63fc84ed9669.tar.gz
libunwind: Fix build on arm < v6
atomics that are needed for libunuwind are not available on arm < v6 Fixes errors like | ../src/.libs/libunwind.so: error: undefined reference to 'AO_fetch_and_add1' | ../src/.libs/libunwind.so: error: undefined reference to 'AO_fetch_and_add' | collect2: error: ld returned 1 exit status Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/libunwind/libunwind.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libunwind/libunwind.inc b/meta-oe/recipes-support/libunwind/libunwind.inc
index f028766b6..2e1504e22 100644
--- a/meta-oe/recipes-support/libunwind/libunwind.inc
+++ b/meta-oe/recipes-support/libunwind/libunwind.inc
@@ -6,7 +6,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3fced11d6df719b47505837a51c16ae5"
6SRC_URI = "http://download.savannah.nongnu.org/releases/${BPN}/${BPN}-${PV}.tar.gz" 6SRC_URI = "http://download.savannah.nongnu.org/releases/${BPN}/${BPN}-${PV}.tar.gz"
7 7
8inherit autotools 8inherit autotools
9
10EXTRA_OECONF_arm = "--enable-debug-frame" 9EXTRA_OECONF_arm = "--enable-debug-frame"
11 10
11CFLAGS += "${ATOMICOPS}"
12ATOMICOPS_armv5 = "-DAO_USE_PTHREAD_DEFS=1"
13ATOMICOPS_armv4 = "-DAO_USE_PTHREAD_DEFS=1"
14ATOMICOPS ?= ""
15
16LDFLAGS += "${LIBATOMICS}"
17LIBATOMICS_armv5 = "-latomic_ops"
18LIBATOMICS_armv4 = "-latomic_ops"
19LIBATOMICS ?= ""
20
21DEPENDS += "${DEPLIBATOMICS}"
22DEPLIBATOMICS_armv5 = "libatomics-ops"
23DEPLIBATOMICS_armv4 = "libatomics-ops"
24DEPLIBATOMICS ?= ""
25
12BBCLASSEXTEND = "native" 26BBCLASSEXTEND = "native"