On Jul 8, 2004, at 8:54 PM, Benjamin Reed wrote:
Marco Comini wrote:
This is interesting. (First of all sorry for my ignorance in imperative languages.)
Why do you expect problems?
Is it the Gnu-compiler buggy (behaving wrongly when using the -fast option)?
What kind of package depends so deeply on machine level instruction set to raise problems?
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) !!!"
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.
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.
JF Mertens
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 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