Mail Archives: djgpp-workers/2000/11/18/02:20:46
> Date: Fri, 17 Nov 2000 16:42:22 -0500
> From: "Peter J. Farley III" <pjfarley AT banet DOT net>
> >
> >I'm not suggesting this be incorporated into the DJGPP build, since
> >it would add a dependency on sed, but it's a solution nonetheless.
>
> But couldn't we depend on the existence of the bnu*.mft or bnu*.ver
> file(s)?
That won't work on a Unix box, when the package is built/tested in a
cross-compiled environment.
I think it might be possible to replace Sed commands with a suitable
GNU Make magic, using the built-in string-manipulation functions.
Failing that, we could add some simple string-replace code to
misc.exe, and use that as a portable alternative to Sed.
> I'm no "as" expert at all, but is there not an assembly-time macro that
> identifies the version?
We couldn't find one, I think. Mark?
> Separately, do I need to make the "*" changes to the "exceptn.S" and
> "dbgcom.c" files manually to be sure I'm building a correct libc?
Yes, that's what I would do.
Alternatively, you could compare the machine instructions generated by
your assembler with the machine instructions in the stock v2.03
library version of exceptn.S (you could use objdump for that).
- Raw text -