Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 1999 21:58:54 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        Marcel Moolenaar <marcel@scc.nl>
Cc:        Charles Henrich <henrich@flnet.com>, emulation@FreeBSD.ORG
Subject:   Re: Linux Development environtment
Message-ID:  <19990610215854.A87959@cons.org>
In-Reply-To: <owner-freebsd-emulationATFreeBSD.ORG--375FCBBE.308B7A36@scc.nl>; from Marcel Moolenaar on Thu, Jun 10, 1999 at 06:44:42PM %2B0200
References:  <19990604174535.E14176@orbit.flnet.com> <owner-freebsd-emulationATFreeBSD.ORG--375FCBBE.308B7A36@scc.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <cracauer@bik-gmbh.de> 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




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