summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2005-01-19 15:42:38 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2005-01-19 15:42:38 +0000
commit4151084cd6f44089ce0aee071f3ce2b6d815ceeb (patch)
tree73a68d1396f1c67719675d8aeda1fb4ce193e5f1 /rules
parenta76ffef7adb5bb35b88c5b9dc9e3be8f10981b07 (diff)
downloadptxdist-4151084cd6f44089ce0aee071f3ce2b6d815ceeb.tar.gz
ptxdist-4151084cd6f44089ce0aee071f3ce2b6d815ceeb.tar.xz
added NPTL and TLS support; patch by Benedikt Spranger
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2199 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r--rules/glibc.in11
-rw-r--r--rules/glibc.make11
2 files changed, 21 insertions, 1 deletions
diff --git a/rules/glibc.in b/rules/glibc.in
index 49d7f72e0..59fe06b9f 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -4,6 +4,17 @@ config GLIBC_PTHREADS
default y
depends on GLIBC && LIBC
+config GLIBC_NPTL
+ bool
+ prompt "Compile glibc with NPTL"
+ depends on GLIBC && LIBC && !GLIBC_PTHREADS
+
+config GLIBC_TLS
+ bool
+ prompt "Compile glibc with TLS"
+ default n
+ depends on GLIBC_NPTL && LIBC
+
config GLIBC_LIBIO
bool
prompt "Build in GNU libio instead of GNU stdio"
diff --git a/rules/glibc.make b/rules/glibc.make
index f78890e25..f2c3ab9fc 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -172,7 +172,6 @@ glibc_prepare_deps += $(STATEDIR)/xchain-kernel.install
GLIBC_AUTOCONF = $(CROSS_AUTOCONF)
GLIBC_AUTOCONF += --with-headers=$(CROSS_LIB_DIR)/include
GLIBC_AUTOCONF += --enable-clocale=gnu
-GLIBC_AUTOCONF += --without-tls
GLIBC_AUTOCONF += --without-cvs
GLIBC_AUTOCONF += --without-gd
GLIBC_AUTOCONF += --prefix=/usr
@@ -218,6 +217,16 @@ ifdef PTXCONF_GLIBC_PTHREADS
GLIBC_AUTOCONF += --enable-add-ons=linuxthreads
endif
+ifdef PTXCONF_GLIBC_NPTL
+GLIBC_AUTOCONF += --enable-add-ons=nptl
+endif
+
+ifdef PTXCONF_GLIBC_TLS
+GLIBC_AUTOCONF += --with-tls
+else
+GLIBC_AUTOCONF += --without-tls
+endif
+
# from config/arch/*.dat:
# additional architecture dependend configure options