Peter Gerwinski wrote:
cross-development with GRX has always required some manual hacking: You have to adjust compiler, linker, etc. manually, and when you try to use, for instance, makefile.dj2 under GNU/Linux, `make clean' fails because the shell does not like `if exist foo.o del foo.o'.
The attached `diff' patches the configure script and the makefiles such that all this works automatically. :-)
Just a few small notes: The diff contained two changes to reset your own configuration values to the defaults (USE_INOUTP_FRAMEDRIVERS and INSTALLDIR) and a diff of makedefs.orig. These resulted in two failed hunks and a failed patch, but harmless. The core problem is that configuring GRX (manually or automatically) modifies files which are also distributed. This makes patch generation a bit harder. I've also had this problem when I made patches. I'm thinking about letting configure create a file `makefile' which includes makedefs.<target> and does the configured settings. This would solve this problem at least when using configure. BTW, one could think about setting HAVE_UNIX_TOOLS=y unconditionally from configure since configure requires Unix tools anyway. But I'm not changing it. (However, I'm adding some quoting in configure, just to be paranoid.) You missed a few `\' and one command.com style command (mostly in the uninstall rules which I suppose you don't use; me neither). I hope I caught them all now. The attached patch is to be applied instead of Peter's patch (it omits the spurious hunks). Frank -- Frank Heckenbach, frank@g-n-u.de http://fjf.gnu.de/ GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E)