[Top][All Lists]

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

Re: is this a bug or intended behavior

From: Paul Smith
Subject: Re: is this a bug or intended behavior
Date: Fri, 03 Aug 2007 19:11:38 -0400

On Fri, 2007-08-03 at 12:45 -0700, Samuel Klatchko wrote:
> The real use case is when I have a Makefile that is building both an
> shared object and an executable that uses it.  I want to factor LDLIBS
> into common libraries that both use and specific libraries that are
> only for the shared object or the executable.  But due to this
> behavior, I can't have the executable dependent on the shared object.

You just need to factor them out into different variables; one
containing common libraries and one for specific ones.  The rule for
building shared libraries only uses the common ones and the rule for
building the executable uses both.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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