1
0

bfin-define-REENTRANT.patch 563 B

12345678910111213
  1. diff -Nur gcc-6.2.0.orig/gcc/config/bfin/linux.h gcc-6.2.0/gcc/config/bfin/linux.h
  2. --- gcc-6.2.0.orig/gcc/config/bfin/linux.h 2016-01-04 15:30:50.000000000 +0100
  3. +++ gcc-6.2.0/gcc/config/bfin/linux.h 2016-09-30 20:48:17.446636819 +0200
  4. @@ -38,6 +38,9 @@
  5. "%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
  6. %{!static:%{mfast-fp:-lbffastfp} %G}"
  7. +#undef CPP_SPEC
  8. +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
  9. +
  10. #undef LINK_SPEC
  11. #define LINK_SPEC "\
  12. %{mfdpic: -m elf32bfinfd -z text} %{shared} %{pie} \