delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/05/12/12:06:46

Date: Sat, 12 May 2001 18:51:55 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: [PATCH] linking mkdoc.exe with libstdcxx.a (needed for gcc-3.0)
In-Reply-To: <3277-Sat12May2001160812+0300-eliz@is.elta.co.il>
Message-ID: <Pine.A41.4.05.10105121849560.39122-100000@ieva06.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Sat, 12 May 2001, Eli Zaretskii wrote:

> > Date: Sat, 12 May 2001 14:55:23 +0300 (WET)
> > From: Andris Pavenis <pavenis AT lanet DOT lv>
> > 
> > On Sat, 12 May 2001, Eli Zaretskii wrote:
> > 
> > > > Date: Sat, 12 May 2001 11:33:49 +0300 (WET)
> > > > From: Andris Pavenis <pavenis AT lanet DOT lv>
> > > > 
> > > > --- 36,42 ----
> > > >   LD = ld
> > > >   STRIP = strip
> > > >   BISON = bison
> > > > + LIBSTDCXX = -lstdcxx
> > > 
> > > Don't we need to use a specific libstdcxx, like we do with libgcc.a?
> > > E.g., what happens for a cross-build?
> > 
> > For cross-build I'm setting 
> > 
> > LIBSTDCXX = -lstdc++
> 
> I've seen that, but I don't understand how would this work.  Isn't
> libstdc++ built for a particular target?  If so, this won't work
> unless there's only one libstdc++ on the host computer, and that
> single libstdc++ was built for DJGPP.  What if I have two or more
> cross-compilers on that host, complete with their respective C++
> libraries?
> 
> Or am I missing something?
> 

Verified. After patch all works OK when I building under Linux (using
gcc-3.0 both for host and target):

make -C mkdoc
building new response file
gcc -g -O2 -pipe mkdoc.cc -lstdc++ -o ../../hostbin/mkdoc.exe


Andris


- Raw text -


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