c-dev@xerces.apache.org
[Top] [All Lists]

Re: Problem with libtool convenience libraries (3.0.0)

Subject: Re: Problem with libtool convenience libraries 3.0.0
From: Boris Kolpackov
Date: Wed, 27 Feb 2008 23:09:16 +0200
Hi Scott,

Scott Cantor <cantor.2@xxxxxxx> writes:

> How would you do it? I've never seen any way to avoid them, it's just part
> of libtool being libtool.

I would just have one library (libxerces-c.la) that will directly include
all the sources, something along these lines:

lib_LTLIBRARIES = libxerces-c.la
libxerces_c_la_SOURCES = xercesc/util/Base64.cpp ...

AUTOMAKE_OPTIONS = subdir-objects

Some of the sources should be included conditionally, but this won't be
a problem.

> I ask because they contain hardcoded paths to libraries prior to
> installation in some cases and I have to take extra steps to delete
> them in my projects.

Hm, are we talking about the same thing here? Convenience libraries
(in automake/libtool) are not installed. They just aggregate object
files and are used as input when building the actual library/executable
which is then installed:

http://sources.redhat.com/automake/automake.html#Libtool-Convenience-Libraries


Boris

-- 
Boris Kolpackov, Code Synthesis Tools
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: c-dev-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>