--with-sysroot usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Sorry if this is a bad question, but its driving me crazy.

I'm trying to get a cross-compiler for mingw32 hosted on Linux.

I downloaded the win32 libs and headers and stuff and placed them in the directory /opt/mingw32-cross/i386-mingw32

Binutils 'i386-mingw32-as' etc go in /opt/mingw32-cross/bin, man pages in /opt/mingw32-cross/man (prefix to all packages is /opt/mingw32-cross)

Libraries and stuff go in /opt/mingw32-cross/i386-mingw32/lib and /opt/mingw32-cross/i386-mingw32/include and /opt/mingw32-cross/i386-mingw32/bin, etc.

I'm fine with the rest of the stuff, but here's the question:

To the GCC configure script, which of the following do I pass:
* --with-sysroot=/opt/mingw32-cross/i386-mingw32
* --with-sysroot=/opt/mingw32-cross
* something completely different

I'm not sure about this. I went with number 1 (--with-sysroot=/opt/mingw32-cross/i386-mingw32) and discovered I had to (cd /opt/mingw32-cross/i386-mingw32 ; mkdir usr; cd usr; ln -s ../lib .; ln -s ../include .)

There has to be a better (less 'kludgey') way to get this setup going. It seems to work fine (apart from cross-compiled C++ programs that use the Boost library that mysteriously crash on startup) but I want to get the --with-sysroot flag figured out.

Before you tell me, the install docs are a bit vague, and I haven't found any answers on the web or on the archives of this mailing list, so I'm asking here.

Thanks,
    Asfand Yar

--
http://www.it-is-truth.org/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux