From owner-freebsd-emulation@FreeBSD.ORG Mon Jul 11 18:32:43 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BAE016A41C for ; Mon, 11 Jul 2005 18:32:43 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6E7D43D49 for ; Mon, 11 Jul 2005 18:32:42 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j6BIWfCJ088933; Mon, 11 Jul 2005 13:32:41 -0500 (CDT) (envelope-from dan) Date: Mon, 11 Jul 2005 13:32:41 -0500 From: Dan Nelson To: "Jim Bodkikns (Dakotacom)" Message-ID: <20050711183241.GH5116@dan.emsphone.com> References: <000701c58643$71f3a190$6401a8c0@HomePC> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c58643$71f3a190$6401a8c0@HomePC> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: freebsd-emulation@freebsd.org Subject: Re: Linking linux libs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 18:32:43 -0000 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