ObjFW  Check-in [3eab631674]

Overview
Comment:configure: Disable compiler TLS on Android/AArch64

Compiler TLS on Android/AArch64 is currently broken with Clang and the
GCC from the NDK has ObjC disabled, so there is currently no way to use
compiler TLS on Android/AArch64.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3eab6316746cf2887ab3ceb64df6fdfe55507e86024a01b1ed63a752e32ee6c5
User & Date: js on 2016-01-05 22:45:01
Other Links: manifest | tags
Context
2016-01-05
22:52
PLATFORMS.md: Update Android check-in: df7c358c36 user: js tags: trunk
22:45
configure: Disable compiler TLS on Android/AArch64 check-in: 3eab631674 user: js tags: trunk
22:00
(u)int_fast*_t -> (u)int*_t check-in: d3158d091f user: js tags: trunk
Changes

Modified configure.ac from [7398d6725d] to [b0a12988ad].

619
620
621
622
623
624
625








626
627
628
629
630
631
632

	AC_DEFINE(OF_HAVE_THREADS, 1, [Whether we have threads])
	AC_SUBST(USE_SRCS_THREADS, '${SRCS_THREADS}')

	AC_ARG_ENABLE(compiler-tls,
		AS_HELP_STRING([--disable-compiler-tls],
			[disable compiler thread local storage]))








	AS_IF([test x"$enable_compiler_tls" != x"no"], [
		AC_CHECK_HEADER(threads.h, [
			AC_DEFINE(OF_HAVE_THREADS_H, 1,
				[Whether we have threads.h])
		])

		AC_MSG_CHECKING(whether _Thread_local works)







>
>
>
>
>
>
>
>







619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640

	AC_DEFINE(OF_HAVE_THREADS, 1, [Whether we have threads])
	AC_SUBST(USE_SRCS_THREADS, '${SRCS_THREADS}')

	AC_ARG_ENABLE(compiler-tls,
		AS_HELP_STRING([--disable-compiler-tls],
			[disable compiler thread local storage]))

	case "$host" in
		aarch64*-*-android*)
			# Compiler TLS is broken on AArch64 Android with Clang
			enable_compiler_tls="no"
			;;
	esac

	AS_IF([test x"$enable_compiler_tls" != x"no"], [
		AC_CHECK_HEADER(threads.h, [
			AC_DEFINE(OF_HAVE_THREADS_H, 1,
				[Whether we have threads.h])
		])

		AC_MSG_CHECKING(whether _Thread_local works)