This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Partially Linked Objects


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]