* 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 02d560d1910b3ee739c00d897d593a8ba23cb9e5..793f710e5aa234a4d5ae9a6e850977afd1746db5 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 e034bc30f3d01a888833f3f4b7d91ca96ebaaf7d..d11e5790bae851aaa636279c0486be8b630f9d16 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*)