[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 = libSDL.la
>
> It says,
>
> make[1]: Entering directory
> `/home/martin/Desktop/sk/schwarzerkaffee/src'
> make[1]: *** No rule to make target `libSDL.la', needed by `libsk.la'.
The idea is the following: if libfoo.la is built by your package, then
you write:
mylib_la_LIBADD = relative/path/to/in/tree/libfoo.la
and if it is built in the same directory, then you write:
mylib_la_LIBADD = libfoo.la
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
configure.ac, 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.
Cheers,
Ralf