Mail Archives: djgpp-workers/2001/01/14/07:02:08
On Sun, 14 Jan 2001, Tim Van Holder wrote:
> Alternatively, automake'd
> packages will require adding AC_EXEEXT to configure.in and re-running
> autoconf and automake. In any case, automake'd Makefiles should be doing
> The Right Thing(tm) already; if they're not, it indicates a problem with
> configure.in.
> Non-automake'd makefiles will need manual adjusting. But then again, those
> probably already used per-platform variations, so minor changes to the
> existing Makefile.dj2 should not be too big a deal.
Most packages which support DJGPP in the official distribution use the
configure script (Emacs and Make are the notable exceptions), so there's
no Makefile.dj2 to hack. If the configure script and Makefile.in don't
DTRT, you are screwed.
> (though if it's a zero-byte file, or a file containing 'dummy for
> foo.exe', I doubt libc will try to execute it.
I think libc will either invoke COMMAND.COM to run these ``programs'' or
pass them to DOS, with very sad results (since COMMAND.COM and DOS will
happily run _anything_). You can try it and see what happens.
Anyway, even if libc refuses to run the program, the command in Makefile
will fail, which isn't what we want.
> Best I can do is to make sure autoconf and automake DTRT; Cygnus configure
> already does, I think.
If we don't want to accept the consequences of getting rid of the
unstubified COFF executables, and don't have resources to fix all the
popular packages out there that rely on them, we had better not make
this change in ld. A bit of disk waste hurts much less than broken
packages, especially since "make clean" removes all that junk.
- Raw text -