[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $cons{LIBS} and dependencies
From: |
Steven Knight |
Subject: |
Re: $cons{LIBS} and dependencies |
Date: |
Fri, 27 Apr 2001 11:05:45 -0500 (CDT) |
On 27 Apr 2001, Doug Alcorn wrote:
> I'm building a number of .a libraries in my project and then linking
> them in a the final link command. I've added a list of all the
> '-lfoo -lbar -lbaz' to the LIBS of the cons environment. I thought
> the documentation said that the library would be added to the
> dependencies. However, I have to have a line like this:
>
> Depends $CONS "$TARGET", ( "$EXPORT/lib/libfoo.a",
> "$EXPORT/lib/libbar.a","$EXPORT/lib/libbaz.a");
>
> In order to get the libraries built. Is this normal? Note that I do
> have Library commands in my Conscripts to build libfoo.a libbar.a and
> libbaz.a.
Assuming you have the $EXPORT/lib directory somewhere in the
environment's LIBPATH, you shouldn't have to specify the dependencies
explicitly like this. If you have a counter-example, it needs fixing.
--SK