This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem crosscompiling libstdc++-2.8.1.1



  In message <199804191201.OAA02740@fubini.mchp.siemens.de>you write:
  > I am trying to build libstdc++-2.8.1.1 for a linux -> mingw32
  > crosscompiler.
  > 
  > The crosscompiler has already been built and lives in
  > /usr/local/i686-pc-mingw32.
  > 
  > This is what I do:
  > 
  > cd <libstdc++-src-directory>
  > mkdir obj_cross
  > cd obj_cross
  > CC=gcc ../configure i686-pc-mingw32 --prefix=/usr/local
  > make
  > 
  > The make runs without problems and creates the libs.
  > However, the native - not the cross - gcc is used.
  > As a result, the objects put into libstdc++.a are ELF-files, not coff
  > as needed for the target platform.
That's because you used CC=gcc.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]