From c310aa40efd3b2d954354e0550b1bbb6a8e7e349 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Apr 2012 23:15:55 +0000 Subject: Add glibc build support * Makeconfig, Versions, configure.in, forward.c, libc_pthread_init.c, pthread/pthread-functions.h, shlib-versions, sysdeps/i386/Implies, sysdeps/mach/hurd/Implies, sysdeps/mach/hurd/i386/Implies: New files. * Makefile: Add glibc rules, enabled when IN_GLIBC is defined to yes, when $(..) is defined. * pthread/pt-initialize.c [IS_IN_libpthread] (pthread_functions): New variable. [IS_IN_libpthread] (__pthread_initialize): Call __libc_pthread_init. --- Makeconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makeconfig (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig new file mode 100644 index 0000000..e7e567c --- /dev/null +++ b/Makeconfig @@ -0,0 +1,10 @@ +# Makeconfig fragment for Hurd libpthread add-on. +# This gets included at the end of the main glibc Makeconfig. + +have-thread-library = yes + +shared-thread-library = $(common-objpfx)libpthread/libpthread.so +static-thread-library = $(common-objpfx)libpthread/libpthread.a +bounded-thread-library = $(static-thread-library) + +rpath-dirs += libpthread -- cgit v1.2.3 From ccebcf4e6d0b42681cc78edbfd2d2adec674f7c7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 23 Apr 2012 17:59:18 +0000 Subject: Fix access to libpthread headers from glibc * Makeconfig (+includes): Add our include/ directory in the header include path, for the rest of glibc. --- Makeconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig index e7e567c..9ce18d3 100644 --- a/Makeconfig +++ b/Makeconfig @@ -8,3 +8,5 @@ static-thread-library = $(common-objpfx)libpthread/libpthread.a bounded-thread-library = $(static-thread-library) rpath-dirs += libpthread + ++includes += -I$(..)libpthread/include -- cgit v1.2.3