Paulo J. Matos wrote:
I see two ways: Creating yet another library and then link it with
lib1 and lib2 and later link to the main code lib1, lib2 and
liblogger.
That's what I do.
It's really no different than linking your programs to, for instance,
the GNOME libraries, which just happen to use the autotools. They're
separate things, so there's really no incentive to try and put them into
a single big tree.
The only downside of this is that every now and then you run into some
situation that requires rebuilding all of the libraries -- moving to a
different machine, if nothing else -- and it's a little more work to
build several separate libraries before tackling your main project. In
practice, it really isn't a big issue.