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

Bug#271298: glibc: Please use nptl instead of linuxthreads on amd64

Package: glibc
Severity: wishlist
Tags: patch

The attached patch changes the following file of the glibc package:

* debian/sysdeps/amd64.mk:

    Drop the 'nptl' pass from GLIBC_PASSES.

    Use 'nptl' instead of 'linuxthreads' in the 'libc' pass (this requires 
    kernel >= 2.6.0, but 2.4 is not supported by the amd64 port anyway).

There had been some complaints about the default use of linuxthreads 
(instead of nptl) on amd64.
In response to these complaints a glibc package with this patch applied 
has been used by the amd64/gcc-3.4 experimental archive on alioth since 
a few weeks (without problems so far).

Andreas Jochens

--- amd64.mk	2004-09-12 15:18:37.216153000 +0200
+++ debian/sysdeps/amd64.mk	2004-09-12 15:19:09.390261953 +0200
@@ -1,11 +1,14 @@
 CC = gcc
 BUILD_CC = gcc
-nptl_extra_cflags = -O3 -fomit-frame-pointer -D__USE_STRING_INLINES
+# build libc with nptl instead of linuxthreads
+libc_add-ons = nptl $(add-ons)
+libc_extra_cflags = -O3 -fomit-frame-pointer -D__USE_STRING_INLINES
+libc_extra_config_options := $(extra_config_options) --with-tls --with-__thread
 # work around patch for gcc-3.4: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=260710
 BUILD_CC_VERSION := $(shell $(BUILD_CC) -dumpversion | sed 's/\([0-9]*\.[0-9]*\)\(.*\)/\1/')
 ifeq ($(BUILD_CC_VERSION),3.4)
-	nptl_extra_cflags += -g0
+	libc_extra_cflags += -g0

Reply to: