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-5.4.0.orig/gcc/config.gcc gcc-5.4.0/gcc/config.gcc
  6. --- gcc-5.4.0.orig/gcc/config.gcc 2015-09-10 16:17:53.000000000 +0200
  7. +++ gcc-5.4.0/gcc/config.gcc 2016-07-01 21:26:02.772958441 +0200
  8. @@ -808,6 +808,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*)