On Fri, 1 Jul 2005, Norman Gray wrote:
> > Norman, another issue I've just come across is that for a successful
> > build you need to have LD_LIBRARY_PATH set correctly (this time it was
> > wrong), otherwise link commands like (from ASTROM):
>
> You're suggesting this as a remark for SUN/248 (Building Starlink
> Applications), yes? If so, I could make the change (happy to), or
> you could edit docs/sun/248 yourself.
>
> >
> > Clearly the "-L/hot/2/pwd/cvs/build/lib" needs to come before -lsla
> > and -lcfitsio, but there doesn't seem to be a macro you can use for
> > this (could that be what STAR_LDFLAGS is for? but that's not currently
> > set).
>
> If you're not suggesting this as being for SUN/248, then I need to
> look at this more carefully.
Yes, my first thought was that the use of LD_LIBRARY_PATH is platform
dependent, but the placement of -L directives surely isn't, so getting
those in the correct dependency order within the build system link
commands that require it, is probably the right thing to do.
This should only be an issue for non libtool linking, so probably isn't
that big a job.
Cheers,
Peter.
|