* config.gcc (*-*-uclinux*): Enable posix threads.
authorWaldemar Brodkorb <wbx@openadk.org>
Mon, 5 Dec 2016 17:48:39 +0000 (17:48 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 5 Dec 2016 17:48:39 +0000 (10:48 -0700)
From-SVN: r243268

gcc/ChangeLog
gcc/config.gcc

index 02d560d..793f710 100644 (file)
@@ -1,3 +1,7 @@
+2016-12-05  Waldemar Brodkorb  <wbx@openadk.org>
+
+       * config.gcc (*-*-uclinux*): Enable posix threads.
+
 2016-12-05  Andrew Senkevich  <andrew.senkevich@intel.com>
 
        * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
index e034bc3..d11e579 100644 (file)
@@ -831,6 +831,9 @@ case ${target} in
 *-*-uclinux*)
   extra_options="$extra_options gnu-user.opt"
   use_gcc_stdint=wrap
+  case ${enable_threads} in
+    "" | yes | posix) thread_file='posix' ;;
+  esac
   tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
   ;;
 *-*-rdos*)