summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-01 00:36:38 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-01 00:36:38 +0000
commit272e7fda1968e4413e9d72a793743d4b73fd275c (patch)
tree25398ebc5ea2ac69298cb0e1f86c893049caff22
parent59a63a91ebdb66e098bd24abae76ac8277043d1b (diff)
downloadbuildroot-novena-272e7fda1968e4413e9d72a793743d4b73fd275c.tar.gz
buildroot-novena-272e7fda1968e4413e9d72a793743d4b73fd275c.zip
control pthread support since some arches like x86_64 dont yet support it in uClibc
-rw-r--r--toolchain/Makefile.in6
-rw-r--r--toolchain/gcc/gcc-uclibc-3.x.mk3
-rw-r--r--toolchain/uClibc/Config.in7
3 files changed, 16 insertions, 0 deletions
diff --git a/toolchain/Makefile.in b/toolchain/Makefile.in
index f47f591f7..ab2eed0d5 100644
--- a/toolchain/Makefile.in
+++ b/toolchain/Makefile.in
@@ -1,3 +1,9 @@
+ifeq ($(BR2_PTHREADS),y)
+THREADS:=--enable-threads
+else
+THREADS:=--disable-threads
+endif
+
ifeq ($(BR2_ENABLE_MULTILIB),y)
MULTILIB:=--enable-multilib
else
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk
index 455b7d30c..9af6289d2 100644
--- a/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/toolchain/gcc/gcc-uclibc-3.x.mk
@@ -109,6 +109,7 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
--enable-target-optspace \
--with-gnu-ld \
$(DISABLE_NLS) \
+ $(THREADS) \
$(MULTILIB) \
$(SOFT_FLOAT_CONFIG_OPTION) \
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
@@ -163,6 +164,7 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
--enable-target-optspace \
--with-gnu-ld \
$(DISABLE_NLS) \
+ $(THREADS) \
$(MULTILIB) \
$(SOFT_FLOAT_CONFIG_OPTION) \
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
@@ -279,6 +281,7 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
--enable-target-optspace \
--with-gnu-ld \
$(DISABLE_NLS) \
+ $(THREADS) \
$(MULTILIB) \
$(SOFT_FLOAT_CONFIG_OPTION) \
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
diff --git a/toolchain/uClibc/Config.in b/toolchain/uClibc/Config.in
index a034b2e1f..b364aaed2 100644
--- a/toolchain/uClibc/Config.in
+++ b/toolchain/uClibc/Config.in
@@ -22,9 +22,16 @@ config BR2_ENABLE_LOCALE
help
Enable locale/gettext/i18n support?
+config BR2_PTHREADS
+ bool "Enable thread support"
+ default y
+ help
+ Enable support for libpthreads
+
config BR2_PTHREADS_NATIVE
bool "Enable Native POSIX Threading (NPTL) support?"
default n
+ depends on BR2_PTHREADS
help
Enable Native POSIX Threading (NPTL) support?