diff options
author | Frederik Carlier <frederik.carlier@quamotion.mobi> | 2017-03-04 20:48:24 +0100 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-03-07 15:05:35 -0800 |
commit | 2b8ab794b3a636c05396fdbaebbba25d8aa4722a (patch) | |
tree | a063fa8951fb44ff9892ce118ac6098e4913697b /configure.ac | |
parent | d9a8b23a35f4a286e8ce1bf7c5ce0e892d1cf5b7 (diff) | |
download | libunwind-2b8ab794b3a636c05396fdbaebbba25d8aa4722a.tar.gz |
Don't link with gcc_s when compiling for Android
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 06a96077..e11ba8bf 100644 --- a/configure.ac +++ b/configure.ac @@ -105,6 +105,19 @@ SET_ARCH([$build_cpu],[build_arch]) SET_ARCH([$host_cpu],[host_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, 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])] @@ -319,7 +332,7 @@ else LDFLAGS_NOSTARTFILES="-XCClinker -nostartfiles" 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" fi |