automake
[Top][All Lists]
Advanced

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

Re: running tests under in a tests/ directory


From: Ralf Wildenhues
Subject: Re: running tests under in a tests/ directory
Date: Tue, 9 Jun 2009 23:03:17 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* Bob Friesenhahn wrote on Tue, Jun 09, 2009 at 09:54:25PM CEST:
> On Tue, 9 Jun 2009, aaragon wrote:
>>
>> AM_LDFLAGS = -L$(top_srcdir)/yafeq -lyafeq
>>
>> and this works fine. Is this the right way to do this?
>
> Any in-tree library dependencies should be specified via LIBADD rather  
> than LDFLAGS.  Using LDFLAGS is a common mistake which results in  
> problems, such as the wrong library being used.  See the documentation.

Also, you should use `$(top_srcdir)/yafeq/libyafeq.la' rather than
`-L$(top_srcdir)/yafeq -lyafeq', because the former will correctly
add the file to the dependencies of the targets it is linked to.

Cheers,
Ralf




reply via email to

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