package/logrotate: update upstream site in Config.in help
[buildroot-gz.git] / package / libunwind / 0003-Link-libunwind-to-libgcc_s-rather-than-libgcc.patch
blob7ea25129f18983bfe8f2bddaa56eec7981ff7599
1 From f1684379dfaf8018d5d4c1945e292a56d0fab245 Mon Sep 17 00:00:00 2001
2 From: Thierry Reding <treding@nvidia.com>
3 Date: Fri, 27 Jun 2014 08:40:33 +0200
4 Subject: [PATCH] Link libunwind to libgcc_s rather than libgcc
6 For some architectures, -lgcc and -lgcc_s are not equivalent. On ARM for
7 example, libgcc_s.so.1 contains some symbols needed by libunwind which
8 are not present in libgcc.
10 This causes the following link error when building the X.Org X server
11 with libunwind support:
13 CCLD Xorg
14 /usr/lib/libunwind.so: undefined reference to `__aeabi_unwind_cpp_pr0'
15 /usr/lib/libunwind.so: undefined reference to `__aeabi_unwind_cpp_pr1'
17 Linking against libgcc_s explicitly solves this problem.
19 Signed-off-by: Thierry Reding <treding@nvidia.com>
20 [yann.morin.1998@free.fr: backport to libunwind 1.1]
21 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
22 ---
23 configure.ac | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
26 diff --git a/configure.ac b/configure.ac
27 index 4e2fd23..a77cf01 100644
28 --- a/configure.ac
29 +++ b/configure.ac
30 @@ -258,7 +258,7 @@ else
32 if test x$GCC = xyes -a x$intel_compiler != xyes; then
33 CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
34 - LIBCRTS="-lgcc"
35 + LIBCRTS="-lgcc_s"
37 AC_MSG_RESULT([$intel_compiler])
39 --
40 1.9.1