Libraries with threading and debugging support
Simon Barner
barner at in.tum.de
Tue Feb 17 05:04:13 PST 2004
Hi,
I am currently working on the devel/boost[1] port, but my question is more
general and I could not find any policy statement in the documentation.
How should one handle different versions of the same library, i.e.
debugging and release version of the library, single and multi-threaded
version, etc.?
The boost library by default installs every possible combination, i.e.
up to 8 if one also considers shared vs. static libraries.
To my mind, this is quite a lot, so I had the following thoughts:
- Install both a shared and a static version (like other ports do)
(naming scheme lib<library name>.so.<#> and lib<library name>.a, as
described in [2])
- If the user requests the debugging version, skip the build of the
release version and install the debugging-enabled libraries instead
(with the same naming scheme)
- I am not too sure about threading support: Should I install extra
multi-threaded versions of the libraries, e.g.
lib<library name>-mt.so.<#> and lib<library name>-mt.a, or should I
install the instead of the single-threaded ones (like in the
release vs. debugging version case)?
Any comments are very appreciated, since I'd really like to unbreak the
port on 5.x.
Simon
--
[1]: http://www.boost.org
[2]: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/policies-shlib.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040217/cac9c8f1/attachment.bin
More information about the freebsd-ports
mailing list