[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mit-scheme] [bug #40150] mit-scheme-c-9.1.1 overrides user supplied
[Bug-mit-scheme] [bug #40150] mit-scheme-c-9.1.1 overrides user supplied optimization CFLAGS
Mon, 30 Sep 2013 21:35:13 +0000
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Iron/12.0.750.0 Chrome/12.0.750.0 Safari/534.30
Summary: mit-scheme-c-9.1.1 overrides user supplied
Project: MIT/GNU Scheme
Submitted by: gska
Submitted on: Mon 30 Sep 2013 09:35:12 PM GMT
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Assigned to: None
Discussion Lock: Any
by default, autoconf'd programs set "-O2 -g" as default CFLAGS.
however they're only used when the user does *not* pass custom CFLAGS.
so the code there is equivalent to
[ -z $CFLAGS ] && CFLAGS="-O2 -g"
mit scheme otoh has the following:
thus, -O3 is always added to the *end* of the CFLAGS, which takes precedence.
so the user has no way to override the hardcore -O3 optimization, which takes
5-10 times as long (and much more RAM) to build than -O0.
if otoh the statement would look like this:
the user could still override the optimization level since his own CFLAGS come
however the best approach is the one taken by vanilla autoconf (first code
Reply to this item at:
Message sent via/by Savannah
|[Prev in Thread]
||[Next in Thread]|
- [Bug-mit-scheme] [bug #40150] mit-scheme-c-9.1.1 overrides user supplied optimization CFLAGS,
George Skabinsky <=