Define CPP_SPEC for microblaze linux targets so that -posix & -pthread work like on all other linux targets.
2015-05-27 Mike Frysinger <vap...@gentoo.org> * config/microblaze/linux.h (CPP_SPEC): Define. --- gcc/config/microblaze/linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/microblaze/linux.h b/gcc/config/microblaze/linux.h index a7faa7d..655a70f 100644 --- a/gcc/config/microblaze/linux.h +++ b/gcc/config/microblaze/linux.h @@ -22,6 +22,9 @@ #undef TARGET_SUPPORTS_PIC #define TARGET_SUPPORTS_PIC 1 +#undef CPP_SPEC +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + #undef TLS_NEEDS_GOT #define TLS_NEEDS_GOT 1 -- 2.4.1