summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/4.9.4/disable-split-stack-nothread.patch
blob: f78f93d8eb83446da4122a46ecbfbad305b51730 (plain)
1
2
3
4
5
6
7
8
9
10
diff -Nur gcc-4.9.3.orig/libgcc/config/t-stack gcc-4.9.3/libgcc/config/t-stack
--- gcc-4.9.3.orig/libgcc/config/t-stack	2010-10-01 21:31:49.000000000 +0200
+++ gcc-4.9.3/libgcc/config/t-stack	2016-03-07 03:07:56.773442671 +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