This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Linking with non-libtool libraries
- From: Dale E Martin <dmartin at cliftonlabs dot com>
- To: "sguillory at austin dot rr dot com" <sguillory at austin dot rr dot com>
- Cc: automake at gnu dot org
- Date: Thu, 19 Feb 2004 15:33:02 -0500
- Subject: Re: Linking with non-libtool libraries
- References: <68680-220042419307494@M2W054.mail2web.com>
> I have a fairly large project that consists of a number of executables
> and shared libraries, all built with autoconf/automake/libtool. Most of
> the executables also depend on thirdparty shared libraries that are
> either not built with libtool, or they were, in a separate tree and then
> copied to a thirdparty area.
> My question is the wrapper scripts that libtool generates for executables
> sets up the LD_LIBRARY_PATH properly for all of the libtool libraries
> that I built, but it does not add components to the LD_LIBRARY_PATH for
> these thirdparty libraries. So I wind up having to modify LD_LIBRARY_PATH
> before running these wrapper scripts.
Have you tried adding "libfoo_la_LIBADD=-lone -ltwo" to add these
dependencies to your libraries, and "foo_LDADD=-lone -ltwo" to add them to
your executables?
Take care,
Dale
--
Dale E. Martin, Clifton Labs, Inc.
Senior Computer Engineer
dmartin@cliftonlabs.com
http://www.cliftonlabs.com
pgp key available