Mail Archives: djgpp-workers/2001/05/12/12:06:46
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 -