Mail Archives: djgpp/1998/01/01/03:25:19
On Wed, 31 Dec 1997, Tony O'Bryan wrote:
> Yep. I was, of course, aghast to hear that a DJGPP base utility had a
> hard-coded path in it (read that last line with a health dose of
> tongue-in-cheek). I had automatically eliminated that as a possibility
> without a second thought.
DJGPP ports of GNU software *always* have certain path names hard-wired
into them. That is how GNU programs are written (they all assume that
they were compiled on the same machine on which they are run), and
changing this in fundamental ways would be a *lot* of work. Try saying
"gcc -v -c foo.c" and you will see that gcc itself has certain directories
that it looks into by default.
What is wrong in this case is *not* that a certain path name is
hard-coded into the binary, but that it is *always* searched. Other
DJGPP ports are set up in a way that they never get to those default
directories, because they find what they are after before that.
DJGPP.ENV usually sets things up so that this is what happens.
But in the case of LD, it searches that directory right on startup, and
*that* is IMHO wrong. The ported version should have been set up to
either disable that code, or substitute a %DJDIR%-relative directory for
it.
- Raw text -