From ef62a79bbfa8db024a3b3399d3605dd67f568b72 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 30 Apr 2008 13:29:35 +0000 Subject: disable stack-checks on debug build (-Ct) to avoid Runtime-Exceptions (Exit-Code 202) e.g. when using non-FPC-managed threads as with SDL_CreateThread(). Stacks of external threads are sometimes considered invalid (even in a test program that just contained SDL_CreateThread, a Thread-function with "return 0" as only line and a loop after SDL_CreateThread, so FPC does not detect a real stack-error). After initializing the console-output (which calls BeginThread) no stack-check error occurs anymore, very strange. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1042 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/m4/fpc.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game/Code/m4/fpc.m4 b/Game/Code/m4/fpc.m4 index e2b0cfbc..896c53d2 100644 --- a/Game/Code/m4/fpc.m4 +++ b/Game/Code/m4/fpc.m4 @@ -27,7 +27,7 @@ dnl - Do not use -dDEBUG because this will enable range-checks that will fail wi dnl - Disable -Xs which is defined in fpc.cfg (TODO: is this necessary?). dnl - For FPC we have to use DEBUG_MODE instead of DEBUG to enable the apps debug-mode dnl because DEBUG enables some additional compiler-flags in fpc.cfg too -PFLAGS_DEBUG=${PFLAGS_DEBUG-"-gl -Cit -Xs- -vew -dDEBUG_MODE"} +PFLAGS_DEBUG=${PFLAGS_DEBUG-"-gl -Xs- -vew -dDEBUG_MODE"} dnl -dRELEASE works too but we define our own settings PFLAGS_RELEASE=${PFLAGS_RELEASE-"-O2 -Xs -vew"} -- cgit v1.2.3