On Apr 10, 2006, at 9:32 AM, Jack Howarth wrote:
What exactly is the preferred method of handling the -mcpu and
-mtune compiler flags for dual use fink info files? For example, I
have a sparky-py.info packaging that currently optimizes for the
G5 with the -mtune flag. I would like to modify this to optimize for
MacIntel as well if compiled on that architecture. What is the
best way to accomplish this with the current fink?
Jack
Jack,
Assuming that you are specifying these with options in the
ConfigureParams entry, you can make certain specifications
architecture-specific, using a construction like
(%m = powerpc) --use-mtune
On the other hand, if you are directly specifying the flags in your
CompileScript, you'll need to run the CompileScript in a shell, and
use shell commands to accomplish this, something like: if [%m =
"powerpc"]; foo; else bar. (But that's probably wrong, I'm not very
fluent in shell!)
By the way, the two possible values for %m are powerpc and i386.
-- Dave
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel