ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
PTNAME := nptl
else
+ifeq ($(LINUXTHREADS_OLD),y)
+ PTNAME := linuxthreads.old
+else
PTNAME := linuxthreads
endif
+endif
PTDIR := $(TOPDIR)libpthread/$(PTNAME)
# set up system dependencies include dirs (NOTE: order matters!)
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
If you are doing development and want to debug applications using
uClibc's pthread library, answer Y. Otherwise, answer N.
+config LINUXTHREADS_OLD
+ bool "Use the older (stable) version of linuxthreads"
+ default y
+ depends on UCLIBC_HAS_THREADS
+ help
+ There are two versions of linuxthreads. The older (stable) version
+ has been in uClibc for quite a long time but hasn't seen too many
+ updates other than bugfixes.
+
+ The new version has not been tested much, and lacks ports for arches
+ which glibc does not support (like bfin/frv/etc...), but is based on
+ the latest code from glibc, so it may be the only choice for the
+ newer ports (like alpha/amd64/64bit arches and hppa).
+
config UCLIBC_HAS_LFS
bool "Large File Support"
default y
LIB_NAME:=libpthread
-libpthread_DIR:=$(top_srcdir)libpthread/linuxthreads
-libpthread_OUT:=$(top_builddir)libpthread/linuxthreads
+libpthread_DIR:=$(top_srcdir)libpthread/linuxthreads.old
+libpthread_OUT:=$(top_builddir)libpthread/linuxthreads.old
ARCH_CFLAGS:=$(CFLAGS)
-include $(libpthread_DIR)/sysdeps/$(TARGET_ARCH)/Makefile.arch
#include <sys/types.h>
#include "pt-machine.h"
#include "semaphore.h"
-#include "../linuxthreads_db/thread_dbP.h"
+#include "../linuxthreads.old_db/thread_dbP.h"
#ifdef __UCLIBC_HAS_XLOCALE__
#include <bits/uClibc_locale.h>
#endif /* __UCLIBC_HAS_XLOCALE__ */
MAJOR_VERSION:=1
-libthread_db_DIR:=$(top_srcdir)libpthread/linuxthreads_db
-libthread_db_OUT:=$(top_builddir)libpthread/linuxthreads_db
+libthread_db_DIR:=$(top_srcdir)libpthread/linuxthreads.old_db
+libthread_db_OUT:=$(top_builddir)libpthread/linuxthreads.old_db
libthread_db_SRC:=$(wildcard $(libthread_db_DIR)/*.c)
#include <string.h>
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
td_err_e
02111-1307 USA. */
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
td_err_e
02111-1307 USA. */
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
td_err_e
02111-1307 USA. */
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
#include <alloca.h>
static int
02111-1307 USA. */
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
#include <alloca.h>
td_err_e
02111-1307 USA. */
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
td_err_e
02111-1307 USA. */
#include "thread_dbP.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
td_err_e
#include <unistd.h>
#include "proc_service.h"
#include "thread_db.h"
-#include "../linuxthreads/internals.h"
+#include "../linuxthreads.old/internals.h"
/* Indeces for the symbol names. */