libtool
[Top][All Lists]
Advanced

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

Re: Libtool -release and static libraries.


From: Peter O'Gorman
Subject: Re: Libtool -release and static libraries.
Date: Thu, 16 Feb 2006 11:52:44 +0900
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brendon Costa wrote:
| Hi all,
|
|       I am using libtool version 1.5.18 to create a library I wrote for
| unit testing. It has come to the stage where I would find it useful to
| have multiple versions of this library installed at any point in time
| on my machine.
|
| I had a look at the -version-info option, and that does not quite
| achieve what I desire, however the -release tag is what I want. The
| problem is however that the static libraries are still named
| libatcppunit.a and not libatcppunit-1.0.6.a as I would have expected.
| So various versions of the static library can not co-exist.
|
| Note: The dynamic libraries are correctly named libatcppunit-1.0.6.so,
| its just the static ones that are not.

Since you seem to want libatcppunit-1.0.6 to be the library name, I suggest
that you use it as the library name :)

lib_LTLIBRARIES = libatcppunit-1.0.6.la

This means that the libatcppunit.so symlink will also disappear (but that's
what you want, right?) and you'll have to use -latcppunit-1.0.6 to link the
library.

The other alternative is for us to change libtool so that static libraries
are versioned and symlinked like shared libraries, but I don't think that
the way to go.

Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQ/Po/LiDAg3OZTLPAQI+bAP/btHsxkC07quuT0bSdi0ulUosSvMwJNlU
rnZaV5dtdYIbdSUlo4j22y+DS5gehrf/vPqqEPXDk+Yer/I5baJPO4LElwYSYfMd
GY7PcOVfs4qNzt83nWSzR4J4pAzGFo5p2oG0xO0yT2AK3n8jVgHDJ+Eyy7mh1FvR
kpKYNEdwx6w=
=4Q9n
-----END PGP SIGNATURE-----




reply via email to

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