RISC-V: Add upstream gcc patch to fix -pthread.

Fixes libmicrohttpd build.
This commit is contained in:
Shea Levy
2018-02-26 05:24:36 -05:00
parent 6b1ab50738
commit 4728ef130e
2 changed files with 16 additions and 1 deletions
@@ -0,0 +1,13 @@
Index: gcc/config/riscv/linux.h
===================================================================
--- a/gcc/config/riscv/linux.h (revision 257620)
+++ b/gcc/config/riscv/linux.h (revision 257621)
@@ -47,6 +47,8 @@
#define ICACHE_FLUSH_FUNC "__riscv_flush_icache"
+#define CPP_SPEC "%{pthread:-D_REENTRANT}"
+
#define LINK_SPEC "\
-melf" XLEN_SPEC "lriscv \
%{shared} \