Subject: Re: Linking NetBSD .o's against a linux lib?
To: Jon Lindgren <jlindgren@slk.com>
From: Todd Vierling <tv@wasabisystems.com>
List: port-i386
Date: 12/05/2000 17:30:33
On Tue, 5 Dec 2000, Jon Lindgren wrote:

: Is it possible to develop and compile NetBSD code, but link it against an
: emul lib (link a linux or FreeBSD library)?  I haven't tried it [yet], but
: am curious to know if it's possible for any of the i86 emul enviroments
: (linux or FreeBSD).

Yes and no.  Any code making use of the Linux or FreeBSD libc is not likely
to work, sans the very basics (malloc(), etc.); the structures for the
system function calls are very different.  However, code which makes no use
of non-basic libc functions may well work.  This is actually used to include
some AVI decompressors for XAnim, which come only as precompiled .o files
that use nothing more than malloc() and free() outside of their own code.

This is, of course, assuming you're using NetBSD 1.5 (ELF), since FreeBSD
3.x+ and Linux both use ELF format object files.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.