1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-29 10:17:38 +01:00

Don't link with gcc_s when compiling for Android

This commit is contained in:
Frederik Carlier 2017-03-04 20:48:24 +01:00 committed by Dave Watson
parent d9a8b23a35
commit 2b8ab794b3

View file

@ -105,6 +105,19 @@ SET_ARCH([$build_cpu],[build_arch])
SET_ARCH([$host_cpu],[host_arch]) SET_ARCH([$host_cpu],[host_arch])
SET_ARCH([$target_cpu],[target_arch]) SET_ARCH([$target_cpu],[target_arch])
# Check for Android
AC_MSG_CHECKING([for Android])
android="no"
case "$host_os" in
*android*)
android="yes"
AC_MSG_RESULT([yes])
;;
*)
AC_MSG_RESULT([no])
;;
esac
AC_ARG_ENABLE(coredump, AC_ARG_ENABLE(coredump,
AS_HELP_STRING([--enable-coredump],[building libunwind-coredump library]),, AS_HELP_STRING([--enable-coredump],[building libunwind-coredump library]),,
[AS_CASE([$host_arch], [aarch64*|arm*|mips*|sh*|x86*|tile*], [enable_coredump=yes], [enable_coredump=no])] [AS_CASE([$host_arch], [aarch64*|arm*|mips*|sh*|x86*|tile*], [enable_coredump=yes], [enable_coredump=no])]
@ -319,7 +332,7 @@ else
LDFLAGS_NOSTARTFILES="-XCClinker -nostartfiles" LDFLAGS_NOSTARTFILES="-XCClinker -nostartfiles"
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 -a x$android != xyes; then
LIBCRTS="-lgcc_s" LIBCRTS="-lgcc_s"
fi fi