Bob Friesenhahn <bfrie...@simple.dallas.tx.us> writes:

> In my opinion, convenience libraries are evil (they dramatically slow
> down the build) and it is better to use a non-recursive build, using
> Makefile variables to list the required object files in the link rather
> than using a convenience library.

The only annoyance with this approach is that if you have different
CPPFLAGS or similar variables set for different parts of your build, but
only one set of flags suffices for the convenience library, performing the
transformation that you describe will result in all the source files that
would have been in the convenience library being built multiple times with
meaningless compiler flag variations.  That can reintroduce quite a lot of
build slowness, as well as duplication of warning messages, etc.

-- 
Russ Allbery (ea...@eyrie.org)              <http://www.eyrie.org/~eagle/>

Reply via email to