[Top][All Lists]

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

Re: Automatic dependecy based compilation targets

From: Dizzy
Subject: Re: Automatic dependecy based compilation targets
Date: Thu, 1 Feb 2007 16:22:44 +0200
User-agent: KMail/1.9.5

On Wednesday 31 January 2007 19:38, Ralf Wildenhues wrote:
> * Dizzy wrote on Wed, Jan 31, 2007 at 12:44:39PM CET:
> Learn about EXTRA_noinst_LIBRARIES and other EXTRA_* thingies.

Thank you very much I have done most of what I wanted with EXTRA_LTLIBRARIES 
(there is no EXTRA_noinst_LIBRARIES). Now when a dependency shows up at make 
time the target is there to build it as I wished.

However I ran into another problem, I have something like:
libbar_la_SOURCES=Bar.hpp bar.cpp
libfoo_la_SOURCES=Foo.hpp Foo.cpp
# make foo depend on bar

Now if I have
libfinal_la_SOURCES=many sources...

I get multiple definitions errors at link time for and symbols in Now I can workarround this by "knowing" that "provides" (as LIBADD) and I shouldn't list too in libfinal LIBADD. 
But I don't want this because it assumes one has to go through all the 
dependency tree (imagine many libfoo/libbar with a complex dependency tree) 
to resolve the dependencies. One should just know that libfinal directly 
needs libfoo and directly needs libbar (and if libbar also needs libfoo 
that's a detail that should be taken care of transparently somehow).

Any solution to this ?


Mihai RUSU                                      Email: address@hidden
GPG :      WWW:
                        "Linux is obsolete" -- AST

reply via email to

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