[slightly OT] optimizations

This is slightly OT, since it’s common to many projects…

When I compile SDL-1.2.5 under MingW (gcc 3.2) I do:

./configure

and that creates makefiles that have, as compiler argumentes, -g -O2

Thus creating 2.5 MB-sized SDL.DLL.

So I have to manually edit the configure script to obtain just -O2.
Why’s that? How can I remove it automatically?–
[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero.it
http://crusaderky.da.ru

“Nam et ipsa scientia potestas est” (Knowledge is power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“I worry about my child and the Internet all the time, even though she’s too young to have logged on yet. Here’s what I worry about. I worry that 10 or 15 years from now, she will come to me and say ‘Daddy, where were you when they took freedom of the press away from the Internet?’”
–Mike Godwin, Electronic Frontier Foundation


[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero.it
http://crusaderky.da.ru

“Nam et ipsa scientia potestas est” (Knowledge is power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“I worry about my child and the Internet all the time, even though she’s too young to have logged on yet. Here’s what I worry about. I worry that 10 or 15 years from now, she will come to me and say ‘Daddy, where were you when they took freedom of the press away from the Internet?’”
–Mike Godwin, Electronic Frontier Foundation

set CFLAGS to something and they will be preserved.

env CFLAGS="-O2" ./configureOn Wed, Jun 11, 2003 at 12:06:47PM +0200, CRV?ADER//KY wrote:

When I compile SDL-1.2.5 under MingW (gcc 3.2) I do:

./configure

and that creates makefiles that have, as compiler argumentes, -g -O2

Thus creating 2.5 MB-sized SDL.DLL.

So I have to manually edit the configure script to obtain just -O2.
Why’s that? How can I remove it automatically?