Linking linux libs

Vladimir Grebenschikov vova at fbsd.ru
Tue Jul 12 06:33:03 GMT 2005


В пн, 11/07/2005 в 13:32 -0500, Dan Nelson пишет:
> In the last episode (Jul 11), Jim Bodkikns (Dakotacom) said:
> >   A linux emulation question.
> > 
> >   I suspect I know the answer to this, but what about linking to
> > vendor supplied linux libs? (A vendor product that is provided in the
> > form of libraries that are linked into your apps).
> 
> As long as you compile and link using linux gcc and ld to generate a
> Linux executable, it'll work.  Don't try and link a Linux library into
> a FreeBSD executable, though, unless the ABI is very simple.  For
> example, a standalone crypto module that takes a buffer and a key would
> probably work; anything that tries to do any stdio or call libc
> functions that pass structures won't.

I have know examples of more complex magic on linking big database linux
static library into FreeBSD applications, but it was like black magic
with lot of libc compatibility hacks.

-- 
Vladimir B. Grebenschikov
vova at fbsd.ru


More information about the freebsd-emulation mailing list