The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libunwind / 0003-Link-libunwind-to-libgcc_s-rather-than-libgcc.patch
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
5
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.
9
10 This causes the following link error when building the X.Org X server
11 with libunwind support:
12
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'
16
17 Linking against libgcc_s explicitly solves this problem.
18
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(-)
25
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
31  
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"
36  fi
37  AC_MSG_RESULT([$intel_compiler])
38  
39 -- 
40 1.9.1
41