Re: EUDIR, EUINC ??
- Posted by mattlewis (admin) Nov 07, 2011
- 1394 views
This is going to get a little more complex, I think, with 4.1. The 64-bit version of MinGW seems to come with the target and host information prepended to the names of the executables. Cross compiling versions (i.e., MinGW on Linux) do this for both 32 and 64-bit versions.
I don't see how this is really any different from having i386-pc-linux-gnu-gcc, i386-pc-linux-gnu-ld, i386-pc-linux-gnu-as, i386-pc-linux-gnu-nm, etc.
The lack of a file named gcc or cc makes finding the right executable names harder (the configure script might need to guess-and-check to see what exists) but it's hardly insurmontable. Hardcoding the names of executables into the makefile is not really good practice at any rate. Someone might want to try something weird like manually invoking distcc or using nasm instead of gas.
Yes, that's exactly what I'm talking about. It would be nice if, as a user of euphoria, as much as possible just worked, right out of the box, after using the official installer.
On my version of 64-bit Windows 7, I have a 32-bit MinGW installed (which is set up with the 'normal' gcc, etc) and a 64-bit MinGW (all of which are prefixed with x86_64-w64-mingw32-). Obviously, I also have to deal with keeping different versions of euphoria installed. In this case, I'd like each version to use the correct compiler. I'm not sure there's an easy way to have the installer set this up automagically.
Matt