[uClibc-cvs] svn commit: trunk/uClibc: extra/Configs libpthread
sjhill at uclibc.org
sjhill at uclibc.org
Sat May 7 00:31:50 UTC 2005
Author: sjhill
Date: 2005-05-06 18:31:49 -0600 (Fri, 06 May 2005)
New Revision: 10255
Log:
Add in configuration item and Makefile changes for NPTL. We will be
placing the NPTL code under the top-level 'libpthread' directory.
Nothing compiles or even works at this point, so do not enable this
option.
Modified:
trunk/uClibc/extra/Configs/Config.in
trunk/uClibc/libpthread/Makefile
Changeset:
Modified: trunk/uClibc/extra/Configs/Config.in
===================================================================
--- trunk/uClibc/extra/Configs/Config.in 2005-05-06 05:00:34 UTC (rev 10254)
+++ trunk/uClibc/extra/Configs/Config.in 2005-05-07 00:31:49 UTC (rev 10255)
@@ -297,6 +297,27 @@
If your applications require pthreads, answer Y.
+config PTHREADS_NATIVE
+ bool "Native POSIX Threading (NPTL) Support"
+ depends on UCLIBC_HAS_THREADS
+ default n
+ help
+ If you want to compile uClibc with NPTL support, then answer Y.
+
+ IMPORTANT NOTE! NPTL requires a Linux 2.6 kernel, binutils
+ at least version 2.16 and GCC with at least version 4.1.0. NPTL
+ will not work with older versions of any above sources. If you
+ ignore any of these guidelines, you do so at your own risk. Do
+ not ask for help on any of the development mailing lists.
+
+ !!!! WARNING !!!! BIG FAT WARNING !!!! REALLY BIG FAT WARNING !!!!
+
+ This is experimental code and at times it may not even build and
+ even if it does it might decide to do random damage. This code is
+ potentially hazardous to your health and sanity. It will remain
+ that way until further notice at which point this notice will
+ disappear. Thank you for your support and for not smoking.
+
config PTHREADS_DEBUG_SUPPORT
bool "Build pthreads debugging support"
default n
Modified: trunk/uClibc/libpthread/Makefile
===================================================================
--- trunk/uClibc/libpthread/Makefile 2005-05-06 05:00:34 UTC (rev 10254)
+++ trunk/uClibc/libpthread/Makefile 2005-05-07 00:31:49 UTC (rev 10255)
@@ -32,7 +32,11 @@
DIRS=
ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
+ifeq ($(strip $(PTHREADS_NATIVE)),y)
+ DIRS+=nptl
+else
DIRS+=linuxthreads
+endif
LDFLAGS_THREAD:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc -z defs
ifeq ($(UCLIBC_BUILD_RELRO),y)
LDFLAGS_THREAD+=-z relro
@@ -41,7 +45,11 @@
LDFLAGS_THREAD+=-z now
endif
ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+ifeq ($(strip $(PTHREADS_NATIVE)),y)
DIRS+=linuxthreads_db
+else
+ DIRS+=nptl_db
+endif
LDFLAGS_THREAD_DB:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
endif
ifeq ($(DODEBUG),n)
More information about the uClibc-cvs
mailing list