Re: lib question

Date view Thread view Subject view Author view

From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Wed Jan 13 1999 - 14:07:28 EST


On Jan 13, 1999, Godmar Back <gback@cs.utah.edu> wrote:

> This link order is carefully crafted, believe it or not.
> In particular, we cannot do things like "-lc -lm -lc -lm -lc -lm -lc"
> in the OSKit because we use library overriding a lot (it's totally
> error prone, and I am totally opposed to it, but that's the way it is).

I see. libc doesn't even appear in configure.in or the Makefiles any
more, libtool takes care of it. -lm is a bit harder to remove, since
several libraries depend on it.

Since LIBS is added to *all* libraries, you'd probably want to add a
new library list flag, and link on Kaffe with it, by appending it to
Kaffe_LDADD, say, MAIN_LIBS. It would be empty for all other OSs, and
only defined within oskit/config.frag. Would that be enough for you?

> We will probably get to testing the automake setup soon; I'll wait however
> until Kaffe's FreeBSD port runs again.

With Edouard's recent patches posted to the libtool mailing list, we
should probably be able to get Kaffe running on FreeBSD with all
static libraries, until I find out what's wrong with the shared ones.

How portable is this script supposed to be? I mean, if libtool is
fooled into believing it's compiling for the host, but it's actually
cross-compiling to a different architecture, we might get in (more)
trouble

> Look at ~gback/oskit/unsupported/scripts/

Soon :-)

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:41 EDT