mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-21 23:27:39 +01:00
Link libunwind to libgcc_s rather than libgcc
For some architectures, -lgcc and -lgcc_s are not equivalent. On ARM for example, libgcc_s.so.1 contains some symbols needed by libunwind which are not present in libgcc. This causes the following link error when building the X.Org X server with libunwind support: CCLD Xorg /usr/lib/libunwind.so: undefined reference to `__aeabi_unwind_cpp_pr0' /usr/lib/libunwind.so: undefined reference to `__aeabi_unwind_cpp_pr1' Linking against libgcc_s explicitly solves this problem. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
65ac867416
commit
f1684379df
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$GCC = xyes -a x$intel_compiler != xyes -a x$qcc_compiler != xyes; then
|
if test x$GCC = xyes -a x$intel_compiler != xyes -a x$qcc_compiler != xyes; then
|
||||||
LIBCRTS="-lgcc"
|
LIBCRTS="-lgcc_s"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([for __builtin___clear_cache])
|
AC_MSG_CHECKING([for __builtin___clear_cache])
|
||||||
|
|
Loading…
Reference in a new issue