Hi, The following two patches allow to a) make use of the "pthread" glibc sysdep, which provides implementation for some functions using pthreads (e.g. aio stuff) b) hook the libpthread version inside glibc, so it is properly returned by confstr.
-- Pino Toscano
From 4335cb271c7ebf80e90bcaf6cfeb6e63adef62ab Mon Sep 17 00:00:00 2001 From: Pino Toscano <toscano.p...@tiscali.it> Date: Sun, 30 Sep 2012 23:40:47 +0200 Subject: [PATCH 1/2] Require the "pthread" sysdep This allows the use of glibc sysdeps that use pthread-based implementations. * sysdeps/mach/hurd/Implies: Add pthread. --- sysdeps/mach/hurd/Implies | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/mach/hurd/Implies b/sysdeps/mach/hurd/Implies index 16b8348..c32378a 100644 --- a/sysdeps/mach/hurd/Implies +++ b/sysdeps/mach/hurd/Implies @@ -1 +1,2 @@ hurd +pthread -- 1.7.10.4
From 24b10a76fd1f89ad9c0623fe4b19f2557c6dc656 Mon Sep 17 00:00:00 2001 From: Pino Toscano <toscano.p...@tiscali.it> Date: Sun, 30 Sep 2012 23:44:24 +0200 Subject: [PATCH 2/2] New Makefile snippet for the "pthread" sysdep Hook the libpthread version when compiling glibc's confstr.c, so that confstr can show it. * sysdeps/pthread/Makefile: New file. --- sysdeps/pthread/Makefile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sysdeps/pthread/Makefile diff --git a/sysdeps/pthread/Makefile b/sysdeps/pthread/Makefile new file mode 100644 index 0000000..1c30542 --- /dev/null +++ b/sysdeps/pthread/Makefile @@ -0,0 +1,3 @@ +ifeq ($(subdir),posix) +CFLAGS-confstr.c += -DLIBPTHREAD_VERSION='"libpthread $(pthread-version)"' +endif -- 1.7.10.4
signature.asc
Description: This is a digitally signed message part.