A short note on my porting:
I am now building a whole new bunch of ports under 4.2 via NFS@macbook, using a new user on Zaurus matching the gid and uid of the Mac user.
But then when I use this account to build stuff, the optimization flags are simply ignored, despite the fact that i have already put them in .profile, .kshrc (using ksh now) and even exported them explicitly.
But there is one solution, after reading
the official FAQ section 15.3.3.
#1 Simply create
/etc/mk.conf (need root privilege of course)
#2 Drop these lines in the file:
CFLAGS+=-mcpu=xscale -mtune=xscale
CXXFLAGS+=-mcpu=xscale -mtune=xscale
(It seems there is no need for -O2 and -pipe flags, as i notice generally the ports have these included in the makefiles.)
#3 Save and go ahead to port stuff. Now you get
systemwide make optimization settings.
And a good thing is you don't need to reboot the system. The new settings take effect immediately.