|
From: Keith M. <kei...@to...> - 2007-07-05 12:03:41
|
Hugh McMaster wrote, quoting me: > I thought that gcc would normally invoke g++ with '-mno-cygwin' > atuomatically, like gcc invokes g++ when needed. Is that correct? Yes, but used this way it may not pull in all the proper library references when it subsequently invokes ld. To be more specific, if your Makefile explicitly invokes g++, (as CXX), then you need the additional CXX='g++ -mno-cygwin'. > As for Fortran77, I'm not sure about that at all. Neither am I, but again, it would depend on your Makefile usage. > I would have thought that using the CC='gcc -mno-cygwin' would invoke > MinGW, but isn't the '--host' configure option necessary to tell the > compiler that it would be building for 23/64 bit Windows? No, the MinGW compiler knows that it is building for 32-bit Woe32; that's the only target it supports. The --host is used by configure, to establish what tool chain prefix to substitute into your Makefile, when defining substitutions for CC, CXX, LD, AR, etc. >> `host_alias=i686-pc-mingw32' is completely redundant here; configure >> sets it internally anyway, to identically the same value as you give >> with `--host'. > > I wasn't aware of that. Now I know. No criticism intended; I just wanted to complete the picture. Regards, Keith. |