This was discussed recently on the cross-gcc maillist, but
I can't put my finger on the exact thread at the moment.
There is a crossgcc FAQ at http://www.objsw.com/CrossGCC/,
which may have the info you need, and you should be able
to subscribe to the maillist by sending a note to
[EMAIL PROTECTED]  I believe
there are list archives at http://sourceware.cygnus.com,
as well.

This is also an issue for folks that want to use the
latest and greatest gcc/egcs compiler on their system,
while maintaining compatibility with whatever version
of gcc is needed to re-compile the kernel shipped with
that distro.

If I recall correctly, it involves building the
cross-compiler (or updated native compiler) in
non-default directory locations, then fixing
the LD_LIBRARY_PATH in shell or make files, to
force the proper libraries for the link.

Good luck,

-- DaveN

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=
Dave New, [EMAIL PROTECTED]    | Machine vision?
ESI Vision Products Division |      At least *they* can see the future...
3980 Ranchero Drive          | 
Ann Arbor, MI  48108         |        Opinions expressed are mine.    | PGP
2.6
(734) 332-7010 VOX           | 08 12 9F AF 5B 3E B2 9B  6F DC 66 5A 41 0B AB
29
(734) 332-7077 FAX


-----Original Message-----
From: Robert Schwebel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:44 AM
To: [EMAIL PROTECTED]
Subject: Cross linking agains libc


Hi!

We have an embedded system here which has another C library installed than
that one on the development machine. Is it possible to compile and link
against the embedded libc while using the 'normal' one for the compiler
itself? If you let the linker find the embedded libc by using a
LD_LIBRARY_PATH which contains the embedded libc on the development
machine gcc seems to try to link against it as well (which fails, of
course).

Robert
-- 
 +----------------------------------------------------------------------+
 I Dipl.-Ing. Robert Schwebel, Luedemannstrasse 25, 24114 Kiel, Germany I
 I Phone +49-431-6794138 Fax +49-431-6794139 email: [EMAIL PROTECTED]  I
 +----------------------------------------------------------------------+


--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to