suggested change in pike/src/configure.in OPTIMIZE line 957
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1731
Reported by Daved Daly, Lightwave Networking daved@lightwave.net
Suggestion:
Change line 957 of pike/src/configure.in
from:
OPTIMIZE=""
to: OPTIMIZE="$OPTIMIZE"
(Since it appears pike moves some CFLAGS like -O2 to the env var OPTIMIZE i've been setting all compiler optimization flags in env var OPTIMIZE, but this requires changing the line in configure.in so that their used.
Since pike doesnt recognize -Ofast=ip27, -OPT:IEEE_arithmetic=3 (and probably lots of other various machine specific optimization flags...) without moving the compiler opts into OPTIMIZE and fixing the configure.in line the resulting makefiles have:
OTHERFLAGS= -Ofast=ip27 -OPT:IEEE_arithmetic=3 -I/usr/local/include - I/usr/include $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL)
NOOPTFLAGS= -Ofast=ip27 -OPT:IEEE_arithmetic=3 -I/usr/local/include - I/usr/include -I/usr/local/include - I/usr/local/people/servers/roxen/Pike/7.2/src -I/usr/local/people/servers/roxen/Pike/7.2/build/irix64-6.5-ip27 $(OSFLAGS) $(WARN) $(PROFIL)
thus, if it fails to compile with optimizations and falls back to compiling without.. it's still doing the same thing...)