[Top][All Lists]

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

Re: confused about libtool and LIBADD

From: Ralf Wildenhues
Subject: Re: confused about libtool and LIBADD
Date: Thu, 23 Sep 2010 21:03:06 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Martin,

* Martin Kalbfuss wrote on Thu, Sep 23, 2010 at 08:08:36PM CEST:
> If I do mylib_la_LIBADD =
> It says,
> make[1]: Entering directory
> `/home/martin/Desktop/sk/schwarzerkaffee/src'
> make[1]: *** No rule to make target `', needed by `'.

The idea is the following: if is built by your package, then
you write:
  mylib_la_LIBADD = relative/path/to/in/tree/

and if it is built in the same directory, then you write:
  mylib_la_LIBADD =

If however it is installed by another package, then you write
  mylib_la_LIBADD = -lfoo

or something like
  mylib_la_LIBADD = @FOO_LIB@

where @FOO_LIB@ is computed by configure code you supply in, and typically may contain '-L/some/path' as well as
'-lfoo' entries.  There are existing Autoconf and third-party macros to
help with this computation.

Hope that helps.


reply via email to

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