Libraries with threading and debugging support

Simon Barner barner at
Tue Feb 17 05:04:13 PST 2004


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><#> 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list