chiark / gitweb /
build-sys: avoid duplicate inclusion of log.c in tools
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Jul 2012 22:06:24 +0000 (00:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Jul 2012 22:32:32 +0000 (00:32 +0200)
commit474abe33bba901142d1a5510850b29cbec739d0d
tree68ba8fd2b8b96c06f415d33b4656c48856a56194
parent347e1b6df028ebb1589146c167add8d37a3d4244
build-sys: avoid duplicate inclusion of log.c in tools

Before: shared code such as log.c was linked once into the public
libraries (where it is entirely hidden) and once into the various tools
which might use those libraries. This is suboptimal, as this way static
variables such as the maximum log level are instantiated twice in all
tools.

After: our build the public libraries a second time, as a convenience
libary, and link our tools against those. Hence all tools use only a
single instance of everything.
Makefile.am