libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Detect the default libpath on aix (to fix MPI support!)


From: Gary V . Vaughan
Subject: Re: [PATCH] Detect the default libpath on aix (to fix MPI support!)
Date: Sun, 29 Jul 2001 17:57:04 +0100

On Tuesday 24 July 2001 9:05 am, Erik Lindahl wrote:
> > Good job!  Thanks for following this through for us.  I took the liberty
> > of renaming and lightly reformatting you new macro, but otherwise applied
> > unchanged to HEAD.  I'm not overly keen on the use of awk, except perhaps
> > here where the macro targets a particular class of machines (where
> > presumably there is guaranteed to be an awk implementation installed). 
> > However, more brownie points are available for converting the awk script
> > into sed...
>
> Ah, I almost suspected awk was at least a little bad. On the other hand,
> this will only
> be executed on AIX 4.3 and higher, i.e. fairly modern systems..
>
> I just spend an hour trying to achieve the same result with sed, but no
> luck. Perhaps
> it's trivial for some of you shell script wizards:

Is *anything* trivial with sed? ;-)  I expect some combination of `n' and `x' 
operations inside `/Import File Strings/{}' block will select the 2nd line 
following.  I fiddled for a few minutes, but didn't hit upon the correct 
voodoo.  I am not a qualified sedi master after all...

As you say, the call is confined to a class of machines that have awk, so 
there is no real worry.  It would be a nice bonus if we can get rid of the 
awk incantation though...

> > P.S.  Don't forget to send an entry for the ChangeLog.
>
> OK, try this:
>
> The default AIX libpath is extended with communication libraries when
> mpcc wrapper scripts are used to create MPI executables. Instead of
> hardcoding /lib and /usr/lib, we now link a program and extract the libpath
> from the file, using dump. It should only affect AIX 4.3 and higher.

Too late. ;-)

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]