[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#361064: glibc: [patch] make building glibc-2.4 without __thread support possible



On Thu, Apr 06, 2006 at 11:54:30AM +0200, Michael Banck wrote:
> Package: glibc
> Version: 2.3.999-1
> Tags: experimental, patch
> 
> Hi,
> 
> the Hurd/Mach still has no TLS or __thread support.  This is not that
> big of a problem as there is --without-tls, but glibc-2.4 uses __thread
> unconditionally at one place and Ulrich Drepper refused to support
> systems without __thread support (see
> http://sourceware.org/ml/libc-alpha/2005-08/msg00091.html ).
> 
> The attached patch fixes building on system without __thread support
> (i.e. hurd-i386), is it OK to apply to the 2.4 branch?

If it works, it looks ok to me. 

Actually this may even be needed for other architectures. It is still 
(ie in 2.3.6) use for alpha, sparc (64-bit flavour) and i386. I have 
tried to build the i386 package with --with-__thread now that we have 
TLS support on i386, but it failed. No time to investigate though.

Also we still have a few architectures without TLS support (arm, hppa,
m68k, mips, mipsel), at least in 2.3.6.

Things may have evolved with 2.4 though, I haven't checked.

Bye,
Aurelien

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: