Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2005 13:32:41 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Jim Bodkikns (Dakotacom)" <JimBodkins@yahoo.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Linking linux libs
Message-ID:  <20050711183241.GH5116@dan.emsphone.com>
In-Reply-To: <000701c58643$71f3a190$6401a8c0@HomePC>
References:  <000701c58643$71f3a190$6401a8c0@HomePC>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050711183241.GH5116>