[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: running tests under in a tests/ directory
From: |
aaragon |
Subject: |
Re: running tests under in a tests/ directory |
Date: |
Tue, 9 Jun 2009 14:25:15 -0700 (PDT) |
Got it, but I tried
LIBADD = $(top_srcdir)/yafeq/libyafeq.la
and it doesn't work. However,
LDADD = $(top_srcdir)/yafeq/libyafeq.la
does work. So I hope this is finally the way to do it.
Alejandro
Ralf Wildenhues wrote:
>
> * 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
>
>
>
>
--
View this message in context:
http://www.nabble.com/running-tests-under-in-a-tests--directory-tp23773808p23951601.html
Sent from the Gnu - Automake - General mailing list archive at Nabble.com.
- Re: running tests under in a tests/ directory, William Pursell, 2009/06/01
- Re: running tests under in a tests/ directory, Ralf Wildenhues, 2009/06/03
- Re: running tests under in a tests/ directory, aaragon, 2009/06/03
- Re: running tests under in a tests/ directory, Ralf Wildenhues, 2009/06/04
- Re: running tests under in a tests/ directory, aaragon, 2009/06/05
- Re: running tests under in a tests/ directory, Ralf Wildenhues, 2009/06/06
- Re: running tests under in a tests/ directory, aaragon, 2009/06/09
- Re: running tests under in a tests/ directory, aaragon, 2009/06/09
- Re: running tests under in a tests/ directory, Bob Friesenhahn, 2009/06/09
- Re: running tests under in a tests/ directory, Ralf Wildenhues, 2009/06/09
- Re: running tests under in a tests/ directory,
aaragon <=
- Re: running tests under in a tests/ directory, Bob Friesenhahn, 2009/06/09
- Re: running tests under in a tests/ directory, Peter Johansson, 2009/06/09
- Re: running tests under in a tests/ directory, Bob Friesenhahn, 2009/06/09
- Re: running tests under in a tests/ directory, Peter Johansson, 2009/06/09
- Re: running tests under in a tests/ directory, aaragon, 2009/06/09
- Re: running tests under in a tests/ directory, Peter Johansson, 2009/06/09
- Re: running tests under in a tests/ directory, Bob Friesenhahn, 2009/06/10