summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-03-06 21:45:18 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-03-06 21:45:41 +0100
commitf8fcb0fbd7b6f9aedbc01c62aa6b2b255a44b586 (patch)
tree0a9990f31a26133f61542fcf0ac2d0df1a16dfcc /toolchain
parentad6d002a0a9fc7e89d0bf609729447e1c075e5d7 (diff)
allow to build x86 without threads
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/patches/5.3.0/disable-split-stach-nothread.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.3.0/disable-split-stach-nothread.patch b/toolchain/gcc/patches/5.3.0/disable-split-stach-nothread.patch
new file mode 100644
index 000000000..32ecf713b
--- /dev/null
+++ b/toolchain/gcc/patches/5.3.0/disable-split-stach-nothread.patch
@@ -0,0 +1,10 @@
+diff -Nur gcc-5.3.0.orig/libgcc/config/t-stack gcc-5.3.0/libgcc/config/t-stack
+--- gcc-5.3.0.orig/libgcc/config/t-stack 2010-10-01 21:31:49.000000000 +0200
++++ gcc-5.3.0/libgcc/config/t-stack 2016-03-06 16:26:13.332119208 +0100
+@@ -1,4 +1,6 @@
+ # Makefile fragment to provide generic support for -fsplit-stack.
+ # This should be used in config.host for any host which supports
+ # -fsplit-stack.
++ifeq ($(enable_threads),yes)
+ LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
++endif