[GRASS5] Re: [GRASSLIST:1962] Re: (DY)LD_LIBRARY_PATH

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Dec 8 06:56:57 EST 2003


On Fri, 5 Dec 2003, Paul Kelly wrote:

>
>
> On Fri, 5 Dec 2003, Radim Blazek wrote:
>
> > On Friday 05 December 2003 15:35, Christopher Fonnesbeck wrote:
> > > Can anyone tell me how to change LD_LIBRARY_PATH to DYLD_LIBRARY_PATH
> > > globally? Even though the configuration file says:
> > >
> > > LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
> > >
> > > under the definition for Darwin-*, I still get the following:
> > >
> [...]
> > >
> > > notice that its NOT using DYLD_LIBRARY_PATH as it is supposed to.
> > >
> > > Thanks,
> >
> > This was fixed 28.11.2003 in cvs.
> >
>
> But as far as I can see it's still not using the definition from
> aclocal.m4 that Christopher is talking about. It might as well be
> used seeing it's there and would be a cleaner solution. I think Glynn
> mentioned this as well.
>
> Would the solution be to make init.sh init.src instead, and the Makefile
> in lib/init can create init.sh from init.src by doing a sed command to
> substitute in the proper value of LD_LIBRARY_PATH_VER (which would be set
> in Platform.make probably)? Something like how the binary install script
> is generated?

I looked again and realised it would be better to put this stuff into the
grass57 startup script as it's already generated in this way. I also found
a bug in which the GRASS_PERL variable wasn't substituted as it was in
init.sh, so I moved it into grass57. It must have only been being used
during compilation though or someone would have found this before.

So I've made the changes in CVS now. I hope I haven't broken anything and
would be grateful if someone with OSX could test it.

Paul




More information about the grass-dev mailing list