www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/07/13:45:10

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problems making linux build/host for target msdosdjgpp
Date: 7 Nov 2002 18:39:06 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 38
Message-ID: <aqec0a$hel$1@nets3.rz.RWTH-Aachen.DE>
References: <004201c285fd$3969cb90$021ca8c0 AT helm> <aqdjot$l2h$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <tmtksu0eplnnu9rbb39591kvmu5mnj3s16 AT 4ax DOT com> <aqdug4$2oc$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <ia0lsu8ihg4dsopq3im5icd6riuilgvtbo AT 4ax DOT com> <aqe37n$7ug$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3c7lsuk8r4vl9sn342g6n1hv55es7k5tal AT 4ax DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1036694346 17877 137.226.32.75 (7 Nov 2002 18:39:06 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 7 Nov 2002 18:39:06 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Charles Wilkins <chas AT pcscs DOT com> wrote:

>>You just
>>have to make sure that some implementation exists, and is found by the
>>compiler / linker.

> It is not that simple when we are talking about a cross compiler that
> creates a binary for a target different than the host.  Is it?

It is, as long as you can find some source for the necessary runtime
support files.  Only if you can't (e.g. if your cross-compiler is the
only compiler you have for that target system), you really have to
bite that bullet.  And it can be quite a bullet to bite the first few
times round.  I once did a cross-build with a completely alien
platform as the host (DEC 64bit Alpha running Digital Unix), and DJGPP
as the target.  It's not an exercise I'd redo from scratch just for
the fun of it...

> The archive libstdc++.a which is created by a typical native install
> of gcc-3.2 is _not_ what the cross compiler / linker seeks.

I was speaking of the *DJGPP* native build.  I.e. the *.a files you
find in gpp32b.zip on your friendly DJGPP ftp site.

> It does matter where the library comes from and how it is created.

Not really.  It only matters that wherever it came from, it was built
correctly, for the right target, and not damaged on its way from
"there" to "here.

> One cannot simply take libstdc++.a and plop it into place for a cross
> compiler that creates executables for a different target.  Can they? 

You can, if you take it right *from* that target.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019