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


On May 13, 1999, Tom Tromey <tromey@cygnus.com> wrote:

>>>>>> "Brian" == Brian Ford <ford@vss.fsi.com> writes:
>>> >noinst_PROGRAMS = partial.o
>>> >partial_o_LDFLAGS = $(LDFLAGS) -r
>>> >partial_o_SOURCES = partial1.c partial2.c

>>> Aha, cunning - it hadn't occured to me that I could supply the "-r"
>>> using LDFLAGS.  I've just tried this approach and it seems to work
>>> perfectly - many thanks.

Brian> This is probably very unportable, though.  Since automake uses
Brian> the compiler to do the linking, you would have to find out how
Brian> or if that compiler can pass flags directly to the linker.

> You could also override partial_o_LINK to set the linker explicitly.

Or you could use libtool, that supports creating reloadable objects
portably :-)

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists


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