[SerialICE] r59 - trunk/SerialICE
svn at coresystems.de
svn at coresystems.de
Fri Nov 20 21:57:27 CET 2009
Author: oxygene
Date: 2009-11-20 21:57:27 +0100 (Fri, 20 Nov 2009)
New Revision: 59
Modified:
trunk/SerialICE/Makefile
Log:
romcc requires lots of stack space, and win32 seems to have a fixed size stack.
Give romcc some room on mingw and cygwin
Modified: trunk/SerialICE/Makefile
===================================================================
--- trunk/SerialICE/Makefile 2009-11-20 17:04:57 UTC (rev 58)
+++ trunk/SerialICE/Makefile 2009-11-20 20:57:27 UTC (rev 59)
@@ -19,6 +19,14 @@
VERSION="1.4"
+_OS=$(shell uname -s |cut -c-7)
+STACK=
+ifeq ($(_OS),MINGW32)
+ STACK=-Wl,--stack,16384000
+endif
+ifeq ($(_OS),CYGWIN_)
+ STACK=-Wl,--stack,16384000
+endif
export src := $(shell pwd)
export srctree := $(src)
export srck := $(src)/util/kconfig
@@ -116,7 +124,7 @@
$(obj)/romcc: $(src)/util/romcc.c
$(Q)printf " HOSTCC $(subst $(shell pwd)/,,$(@))\n"
- $(Q)$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
+ $(Q)$(HOSTCC) $(HOSTCFLAGS) $(STACK) -o $@ $^
# #####################################################################
More information about the SerialICE
mailing list