This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Partially Linked Objects
- To: Brian Ford <ford@vss.fsi.com>
- Subject: Re: Partially Linked Objects
- From: Olly Betts <olly@muscat.co.uk>
- Date: Tue, 18 May 1999 17:24:36 +0100
- cc: automake@gnu.org
In message <Pine.SGI.4.03.9905181113040.7183-100000@iscream.vss.fsi.com>, Brian
Ford writes:
>On Tue, 18 May 1999, Olly Betts wrote:
>> Changing all_o_LINK to the obvious:
>>
>> all_o_LINK = $(LIBTOOL) --mode=link ld $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o
>$@
>This is probably almost correct. You aren't including the LDADD stuff
>(libtest.la) on the command line, so obviosly libtool doesn't try to
>expand it. Fix this, and I bet it'll work.
Actually automake seems to append the LDADD stuff itself. I failed to paste
in the libtool invocation automake produces before - here it is:
/bin/sh ../libtool --mode=link ld -g -O2 -o all.o liball.la
/usr/bin/ld -r -o all.o
/usr/bin/ld: no input files
Adding it explicitly myself just invokes libtool with liball.la specified
twice, but the ld libtool invokes still has no arguments.
Cheers,
Olly