Others (e.g., NDK clang/i686) still might need -latomic linker option.
* src/atomic_ops/sysdeps/gcc/x86.h
[AO_GCC_ATOMIC_TEST_AND_SET && __clang__]: Do not fallback to
non-intrinsic implementation if __APPLE_CC__ or __CYGWIN__.
#endif /* AO_DISABLE_GCC_ATOMICS */
#if (defined(AO_PREFER_BUILTIN_ATOMICS) || !defined(__clang__) \
- || defined(__x86_64__)) && defined(AO_GCC_ATOMIC_TEST_AND_SET)
+ || defined(__x86_64__) || defined(__APPLE_CC__) || defined(__CYGWIN__)) \
+ && defined(AO_GCC_ATOMIC_TEST_AND_SET)
/* As of clang-3.8 i686 (NDK r11c), it requires -latomic for all the */
/* double-wide operations. For now, we fall back to the */