Browse Source

Make TLS configure time variable. Enable it along with NPTL.

Khem Raj 16 years ago
parent
commit
bd1a033922
1 changed files with 11 additions and 0 deletions
  1. 11 0
      extra/Configs/Config.in

+ 11 - 0
extra/Configs/Config.in

@@ -372,6 +372,16 @@ config UCLIBC_HAS_THREADS
 
 
 	  If your applications require pthreads, answer Y.
 	  If your applications require pthreads, answer Y.
 
 
+config UCLIBC_HAS_TLS
+	bool "Thread-Local Storage"
+	depends on UCLIBC_HAS_THREADS
+	default n
+	help
+	  If you want to enable TLS support then answer Y.
+	  This is fast an efficient way to store per-thread local data
+	  which is not on stack. It needs __thread support enabled in
+	  gcc.
+
 config PTHREADS_DEBUG_SUPPORT
 config PTHREADS_DEBUG_SUPPORT
 	bool "Build pthreads debugging support"
 	bool "Build pthreads debugging support"
 	default n
 	default n
@@ -407,6 +417,7 @@ config UCLIBC_HAS_THREADS_NATIVE
 	bool "Native POSIX Threading (NPTL) Support"
 	bool "Native POSIX Threading (NPTL) Support"
 	depends on UCLIBC_HAS_THREADS
 	depends on UCLIBC_HAS_THREADS
 	default n
 	default n
+	select UCLIBC_HAS_TLS
 	help
 	help
 	  If you want to compile uClibc with NPTL support, then answer Y.
 	  If you want to compile uClibc with NPTL support, then answer Y.