Tim,
On Thu, 11 Mar 2004, Tim Jenness wrote:
> but you used
>
> _LDADD = `$(srcdir)/blah_link`
>
> and it definitely runs it as `./blah_link` so that seems like the right
> thing to do?
I did have that in the example I pointed you towards. I realised,
however, that since this expanded to `-lemsf -lems -lcnf' (in the ems
example), it was ultimately linking the installed libraries rather
than the local ones. I think you can't get around this by adding -L. to the
LDADD variable: since this variable's contents eventually form part of
a _libtool_ command line, you can't be sure that the -L. will stay in
front of a -L/my-star/lib in the argument list by default. That is,
libtool does the Right Thing, which turns out to be the wrong thing in
this case. Linking against a `libtool library' 'libemsf.la libems.la'
is the way to tell libtool to use a local library and nothing else.
Norman
--
---------------------------------------------------------------------------
Norman Gray http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK [log in to unmask]
|