This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
build cross gcc with taget, host and build all differnt
- From: Markus Henschel <markus dot henschel at yager dot de>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 12 Jan 2012 18:07:50 +0100
- Subject: 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