python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / gcc / 6.3.0 / 895-bfin-define-REENTRANT.patch
blobe2828a5106a3d8e5a607611279b9d677bf7effc8
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
8 @@ -38,6 +38,9 @@
9 "%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
10 %{!static:%{mfast-fp:-lbffastfp} %G}"
12 +#undef CPP_SPEC
13 +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
15 #undef LINK_SPEC
16 #define LINK_SPEC "\
17 %{mfdpic: -m elf32bfinfd -z text} %{shared} %{pie} \