summaryrefslogtreecommitdiff
path: root/src/stage1/toolchain-pkgbuilds/gcc/0001-pthread-reentrant.patch.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/stage1/toolchain-pkgbuilds/gcc/0001-pthread-reentrant.patch.in')
-rw-r--r--src/stage1/toolchain-pkgbuilds/gcc/0001-pthread-reentrant.patch.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stage1/toolchain-pkgbuilds/gcc/0001-pthread-reentrant.patch.in b/src/stage1/toolchain-pkgbuilds/gcc/0001-pthread-reentrant.patch.in
new file mode 100644
index 0000000..36342ef
--- /dev/null
+++ b/src/stage1/toolchain-pkgbuilds/gcc/0001-pthread-reentrant.patch.in
@@ -0,0 +1,11 @@
+--- trunk/gcc/config/riscv/linux.h 2018/01/03 10:03:58 256169
++++ trunk/gcc/config/riscv/linux.h 2018/02/13 11:21:01 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} \