This is the mail archive of the gcc-help@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]
Other format: [Raw text]

build cross gcc with taget, host and build all differnt


Hi, 

I'm trying to build a gcc on linux that runs on windows and builds binaries for freebsd. Basically I'm doing something like this:

--configure -target=i386-pc-freebsd -build=i686-pc-linux-gnu -host=i686-mingw32 ...

I omitted the other switches like -prefix, --with-sysroot and so on.

What I'm unsure about is if this scenario is supported in that way. I mean the build process runs on linux and uses an existing cross compiler to create a gcc that runs on windows. But in the process gcc has to create some libraries like libgcc or libstdc++. It cannot use itself for this because host and build systems are different. Is the gcc build so clever to automatically build another cross compiler that runs on linux and builds code for freebsd for that purpose or do I have to create it myself?

Thanks

Markus


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