[Top][All Lists]

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

Re: portability of -L<relative_directory_name>

From: Roumen Petrov
Subject: Re: portability of -L<relative_directory_name>
Date: Sun, 24 Feb 2008 18:52:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20080212 SeaMonkey/1.1.8

Bruno Haible wrote:

A while ago someone said that if in a build directory I have a (not yet
installed) ../lib/libfoo.la, to link with this library I should *not* use

   libtool ... -L../lib -lfoo

but rather mention the .la file explicitly:

   libtool ... -L../lib ../lib/libfoo.la
   libtool ... ../lib/libfoo.la

Now I see the same advice in the second-to-last paragraph of

Is it true that references to non-yet-installed libool libraries should not be
made with -l? If so, it would be worth to document this in the libtool
documentation. I didn't find it there.


Automake document this in paragraph "Program and Library Variables" xxx_LIBADD and xxx_LDADD
But if project don't use automake may be good libtool to detail too.


reply via email to

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