aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nios2/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/nios2/linux.h')
-rw-r--r--gcc/config/nios2/linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h
index 3e77ca6c90f..1b3fd992bdf 100644
--- a/gcc/config/nios2/linux.h
+++ b/gcc/config/nios2/linux.h
@@ -26,6 +26,9 @@
} \
while (0)
+#undef CPP_SPEC
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
#undef LINK_SPEC