2
1

940-uclinux-enable-threads.patch 635 B

12345678910111213141516171819
  1. Enable POSIX threads for uClinux targets
  2. Reported upstream:
  3. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721
  4. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  5. diff -Nur gcc-6.1.0.orig/gcc/config.gcc gcc-6.1.0/gcc/config.gcc
  6. --- gcc-6.1.0.orig/gcc/config.gcc 2016-04-11 12:14:59.000000000 +0200
  7. +++ gcc-6.1.0/gcc/config.gcc 2016-07-02 20:04:25.732169982 +0200
  8. @@ -833,6 +833,9 @@
  9. *-*-uclinux*)
  10. extra_options="$extra_options gnu-user.opt"
  11. use_gcc_stdint=wrap
  12. + case ${enable_threads} in
  13. + "" | yes | posix) thread_file='posix' ;;
  14. + esac
  15. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
  16. ;;
  17. *-*-rdos*)