From 64f6bb65f2620af92a768b780e35b4d62f7b2d1c Mon Sep 17 00:00:00 2001 From: short <> Date: Sun, 23 Feb 2003 13:41:16 +0000 Subject: [PATCH] +workaround gcc __stdcall__ bug by reducing CFLAGS optimizations --- captive.spec.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/captive.spec.in b/captive.spec.in index 54ba947..4be00eb 100644 --- a/captive.spec.in +++ b/captive.spec.in @@ -51,9 +51,12 @@ TODO %build # Never disable debug for captive, see FAQ # "How to check valid input arguments? Invalid processing state assumptions?" +# FIXME: Use our own CFLAGS to prevent '-mcpu=i686' which up to gcc-20030214 gcc +# will ignore stack freeing of attribute((stdcall)) callees in caller functions code. +# Check at the final call of src/libcaptive/reactos/ntoskrnl/io/irp.c/IofCallDriver(). +CFLAGS="-O2" %configure \ - --enable-shared --disable-static \ - --disable-debug + --enable-shared --disable-static make %install -- 1.8.3.1