From: Godmar Back (gback@cs.utah.edu)
Date: Wed Jan 20 1999 - 02:08:45 EST
>
> On Jan 20, 1999, Godmar Back <gback@cs.utah.edu> wrote:
>
> > Does the final link line for kaffe look like
>
> Like this:
>
> > C.
> > ar -r libkaffevm.a syscall.o jthread.o internal.o
> > ld ... -lkaffevm
>
> > I would choose C if
> > + kthreads is logically part of kaffevm
>
> Isn't it?
It is. Good!
Your statement that
It's just a convenience library, which means that anything linked with
it will get *all* its object code. Think of it as a macro that
expands to the list of all object files in it.
seemed to imply something else, namely that anything linked with it
will get all its object code. In truth, it only gets the object code
that is needed to resolve references.
>
> > I would never choose B because kaffevm simply is not a library needed
> > for the files in libkthreads.a. Your paragraph above, however, seems to
> > imply it's B. Is that correct?
>
> Nope, because libkaffevm is linked with libkthreads. It is at this
> point that libkthreads expands to the list of object files, and
> therefore libkaffevm gets all the object files from libkaffevm.
Aha. Good.
So libtool introduces an abstraction of "linking" a library with
another library, which means merging their object files.
- Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:47 EDT