control pthread support since some arches like x86_64 dont yet support it in uClibc
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Oct 2005 00:36:38 +0000 (00:36 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 Oct 2005 00:36:38 +0000 (00:36 -0000)
toolchain/Makefile.in
toolchain/gcc/gcc-uclibc-3.x.mk
toolchain/uClibc/Config.in

index f47f591f727df205c35f717156e1351fb00c96b7..ab2eed0d54666563cfdde67c839625439bdc5fd7 100644 (file)
@@ -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
index 455b7d30c653e78e5ed2d5cee17426f2bd54050e..9af6289d21898b38da964375f522db8ff2134257 100644 (file)
@@ -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) \
index a034b2e1f25ce77a8982129d674bc4b368875f18..b364aaed2ac70812b0192856156368479acd5fca 100644 (file)
@@ -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?