There are a number of optimizations that cause apple's modified gcc to create bad code; -Os is safest, most tested, and generally fastest within a small margin (and is, in fact, what Apple compiles their stuff with for the OS, at least for Panther). -O2 has bitten a number of large projects in the past, and worked with others, much less other, less-used optimizations.
This is indeed what I meant when I wrote "And there will be a bunch of them (broken pkgs) !!!"
But explained this "unzipped" way was much useful to me! ;)
Additional cautionary note: often the fact that such pkgs with increased optimisation are broken
is not detectable at compile time, only results in occasional run-time errors _ which might very
well show up only when running other, dependent pkgs.. So it may be quite hard to debug.
Yep. But then one can simply choose *not* to debug at all and recompile with defaults options, being happy with slower but working binaries just when needed.
On the other hand, if your interest is more to get machine specific builds rather than specifically
"-fast", feel free to experiment with adding the flags
"-mcpu=`machine|sed 's,ppc,,'` -mtune=`machine|sed 's,ppc,,'`"
Those I've never seen to cause trouble.
This probably lightens the whole discussion. I've talked about '-fast' because (in my ignorance) had thought it was a synonym of G5-optimized. Actually to me is not important to experience stunning velocities but take advantage of the G5, so maybe just this '-mcpu' and '-mtune' would give me "perceptible" (not necessarily astonishing) execution speedups which is exactly what I want.
PS: Forgot to mention yesterday another _ fully "legal" _ way to customize your fink, which I'm also using:
create a pkg in your local tree that just installs in /sw/etc/profile.d files zzz_name.(c)sh
[or AAA_name.(c)sh, depending on the effect you want] with the appropriate content.
This is really obscure. If you'd like to "unzip" it for me before Benjamin Reed does, I'd appreciate it and you won't have to say "This is indeed what I meant" afterwards! :)
Cheers, -- Marco.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users