From owner-freebsd-emulation Thu Jun 10 12:59:52 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [194.233.237.82]) by hub.freebsd.org (Postfix) with ESMTP id 2651314F7F for ; Thu, 10 Jun 1999 12:59:46 -0700 (PDT) (envelope-from cracauer@counter.bik-gmbh.de) Received: from counter.bik-gmbh.de (counter.bik-gmbh.de [194.233.237.131]) by grisu.bik-gmbh.de (8.8.8/8.6.9) with ESMTP id VAA22146; Thu, 10 Jun 1999 21:59:41 +0200 (MEST) Received: (from cracauer@localhost) by counter.bik-gmbh.de (8.9.3/8.8.8) id VAA88229; Thu, 10 Jun 1999 21:58:54 +0200 (CEST) (envelope-from cracauer) Date: Thu, 10 Jun 1999 21:58:54 +0200 From: Martin Cracauer To: Marcel Moolenaar Cc: Charles Henrich , emulation@FreeBSD.ORG Subject: Re: Linux Development environtment Message-ID: <19990610215854.A87959@cons.org> References: <19990604174535.E14176@orbit.flnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Marcel Moolenaar on Thu, Jun 10, 1999 at 06:44:42PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Charles Henrich wrote: > The compilers and linkers insist on referencing the FreeBSD libraries... Since FreeBSD is ELF now, you will face the problem that Libraries are gotten in roughly this order /comat/linux/usr/lib /usr/lib [without the compiler wanting it, the emulator does it] /comat/linux/lib [compiler want it] /lib [ harmless ] /comat/linux/usr/local/lib /usr/local/lib [harmful and hidden from the compiler again] Since libc in in /lib on Linux systems, the FreeBSD libc in /usr/lib is found first ==> BOOM. To do any Linux crosscompiling with custom libraries on a FreeBSD ELF system, the best solution is to symlink all Linux libraries you have into the first directory that the compiler searches. I sent a longer explanation to -port or -emulation a few months ago. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.bik-gmbh.de/~cracauer/ "Where do you want to do today?" Hard to tell running your calendar program on a junk operating system, eh? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message