1 enable _REENTRANT when -lpthread is used
3 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
5 diff -Nur gcc-6.2.0.orig/gcc/config/bfin/linux.h gcc-6.2.0/gcc/config/bfin/linux.h
6 --- gcc-6.2.0.orig/gcc/config/bfin/linux.h 2016-01-04 15:30:50.000000000 +0100
7 +++ gcc-6.2.0/gcc/config/bfin/linux.h 2016-09-30 20:48:17.446636819 +0200
9 "%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
10 %{!static:%{mfast-fp:-lbffastfp} %G}"
13 +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
17 %{mfdpic: -m elf32bfinfd -z text} %{shared} %{pie} \