%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