diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-06-13 07:12:38 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-06-20 12:30:06 +0200 |
commit | cd2e0043d8fd009f3230e0c9cdfb63fc84ed9669 (patch) | |
tree | 8e6d902fde081888352806e9f0d921b4aa8a8161 /meta-oe | |
parent | 475e25491c0265e813a332f8ba3d39dcc1e02b81 (diff) | |
download | meta-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.inc | 16 |
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" | |||
6 | SRC_URI = "http://download.savannah.nongnu.org/releases/${BPN}/${BPN}-${PV}.tar.gz" | 6 | SRC_URI = "http://download.savannah.nongnu.org/releases/${BPN}/${BPN}-${PV}.tar.gz" |
7 | 7 | ||
8 | inherit autotools | 8 | inherit autotools |
9 | |||
10 | EXTRA_OECONF_arm = "--enable-debug-frame" | 9 | EXTRA_OECONF_arm = "--enable-debug-frame" |
11 | 10 | ||
11 | CFLAGS += "${ATOMICOPS}" | ||
12 | ATOMICOPS_armv5 = "-DAO_USE_PTHREAD_DEFS=1" | ||
13 | ATOMICOPS_armv4 = "-DAO_USE_PTHREAD_DEFS=1" | ||
14 | ATOMICOPS ?= "" | ||
15 | |||
16 | LDFLAGS += "${LIBATOMICS}" | ||
17 | LIBATOMICS_armv5 = "-latomic_ops" | ||
18 | LIBATOMICS_armv4 = "-latomic_ops" | ||
19 | LIBATOMICS ?= "" | ||
20 | |||
21 | DEPENDS += "${DEPLIBATOMICS}" | ||
22 | DEPLIBATOMICS_armv5 = "libatomics-ops" | ||
23 | DEPLIBATOMICS_armv4 = "libatomics-ops" | ||
24 | DEPLIBATOMICS ?= "" | ||
25 | |||
12 | BBCLASSEXTEND = "native" | 26 | BBCLASSEXTEND = "native" |