Peter Eisentraut wrote: > Bruce Momjian writes: > > > > BUT: The default CFLAGS are set by configure to -O2, although the template > > > wants -O. I manually modified the CFLAGS to -O after configure. > > > > template/alpha has: > > > > case $host_cpu in > > alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2 > > esac > > > > Is this not getting invoked? > > It appends it at the end, but apparently the result of '-02 ... -O' is > -O2. So the compiler still yells at you every time that -O2 is broken in > that platform. > > Right now, the default CFLAGS are pretty much broken on most platforms, so > I'm testing by manually specifying the CFLAGS that should be used.
Wow, later optimization flags don't override earlier ones. Yikes! Does -O0 override an earlier -O2? I wonder if it is just complaining when it sees -O2 and is actually using -O for the compile. We still need to fix that, but I am curious. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html