On Tue, Jan 04, 2005 at 09:52:27PM +0100, Jochen Junker wrote:
>
> Since I read some postings about unsuccessful attempts to use the ibm
> compilers with fink, I decided to post how it worked for me.
>
> This is quite tricky, requires root access and messing with the Fink
> code, be sure you know what you are doing!
>
> 1. make gxlc + gxlf + xlc + xlf95 available in your normal path via
> links
> cd /usr/bin
> ln -s /opt/ibmcmp/vac/6.0/bin/xlc xlc
> ....
>
> 2. modify PkgVersion.pm
> in the function run_script add the lines
> $ENV{CC}="gxlc";
> $ENV{CXX}="gxlc";
> $ENV{F77}="gxlf";
> after the init of the environment for running the script.
It might be better to do things like this in the get_env function,
where there is a clean mechanism to declare default values for
arbitrary env vars. Some packages set their own CC (and other) env
vars (for example, passing -I or -D flags), settings which would be
lost if you make a blanket assignment. OTOH, some pkgs also use CC to
force use of gcc3, as it is known they do not compile correctly with
gcc3.3...no idea how the IBM compilers' compatibility compares to
gcc's so dunno what compiler you'd want to have these pkgs use.
dan
--
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users