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:09:00 +0100
- cc: automake@gnu.org
Brian Ford writes:
>I hadn't realized that you were actually trying to distribute this
>partially linked object. I thought it was just an intermediate step in
>your build process. Sorry.
Sorry, I didn't make this clear originally (because I'd overlooked this
requirement myself until yesterday).
>Try this:
>[...]
>all_o_SOURCES =
>all_o_LDADD = libtest.la
>all_o_LINK = ld -r $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
A cunning plan, but that gives:
ld -r -g -O2 -o all.o liball.la
liball.la: file not recognized: File format not recognized
Changing all_o_LINK to the obvious:
all_o_LINK = $(LIBTOOL) --mode=link ld $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
gives:
/usr/bin/ld -r -o all.o
/usr/bin/ld: no input files
It appears libtool isn't handling handle its own convenience libraries in
this case. Looking at the libtool script (1.3), it looks like there's code
there which is meant to do this, but apparently it isn't firing. I'll see
if I can work out why.
>Warning: Libtool does not currently fully support C++, but it should be
>forth comming.
Thanks for the warning - I've checked the relevant section in the libtool
manual, and I think I'm lucky enough not to be affected.
Cheers,
Olly