From 272e7fda1968e4413e9d72a793743d4b73fd275c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 1 Oct 2005 00:36:38 +0000 Subject: [PATCH] control pthread support since some arches like x86_64 dont yet support it in uClibc --- toolchain/Makefile.in | 6 ++++++ toolchain/gcc/gcc-uclibc-3.x.mk | 3 +++ toolchain/uClibc/Config.in | 7 +++++++ 3 files changed, 16 insertions(+) diff --git a/toolchain/Makefile.in b/toolchain/Makefile.in index f47f591f72..ab2eed0d54 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 455b7d30c6..9af6289d21 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 a034b2e1f2..b364aaed2a 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? -- 2.30.2