+workaround gcc __stdcall__ bug by reducing CFLAGS optimizations
authorshort <>
Sun, 23 Feb 2003 13:41:16 +0000 (13:41 +0000)
committershort <>
Sun, 23 Feb 2003 13:41:16 +0000 (13:41 +0000)
captive.spec.in

index 54ba947..4be00eb 100644 (file)
@@ -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