automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set dependencies between convenience libraries


From: Russ Allbery
Subject: Re: Set dependencies between convenience libraries
Date: Wed, 21 May 2014 11:28:50 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Bob Friesenhahn <address@hidden> 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 (address@hidden)              <http://www.eyrie.org/~eagle/>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]