From owner-freebsd-emulation Thu Jun 10 14:12:26 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from orbit.flnet.com (orbit.flnet.com [205.240.232.32]) by hub.freebsd.org (Postfix) with ESMTP id 3B8A114D39 for ; Thu, 10 Jun 1999 14:12:20 -0700 (PDT) (envelope-from henrich@orbit.flnet.com) Received: (from henrich@localhost) by orbit.flnet.com (8.8.5/8.8.4) id RAA17362; Thu, 10 Jun 1999 17:11:38 -0400 (EDT) Date: Thu, 10 Jun 1999 14:11:38 -0700 From: Charles Henrich To: Martin Cracauer Cc: Marcel Moolenaar , emulation@FreeBSD.ORG Subject: Re: Linux Development environtment Message-ID: <19990610141137.A16720@orbit.flnet.com> References: <19990604174535.E14176@orbit.flnet.com> <19990610215854.A87959@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990610215854.A87959@cons.org>; from Martin Cracauer on Thu, Jun 10, 1999 at 09:58:54PM +0200 X-Operating-System: FreeBSD 2.2-BETA_A X-PGP-Fingerprint: 1024/F7 FD C7 3A F5 6A 23 BF 76 C4 B8 C9 6E 41 A4 4F Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On the subject of Re: Linux Development environtment, Martin Cracauer stated: > 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. It workes jkust great if you change the direct links to relative links and do nothing else... -Crh Charles Henrich Manex Visual Effects henrich@flnet.com http://orbit.flnet.com/~henrich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message