Mail Archives: djgpp-workers/2001/01/31/07:29:14
On 31 Jan 2001, at 13:12, Eli Zaretskii wrote:
>
> On Wed, 31 Jan 2001, Laurynas Biveinis wrote:
>
> > > Didn't GCC have some special code to expand $DJDIR at runtime, written
> > > by Robert Hoehne when /dev/env didn't exist yet?
> >
> > I don't understand why DJDIR expansion is relevant here.
>
> I thought you were asking how did GCC find its auxiliary files and
> libraries without the /dev/env paths present in the sources. I tried to
> explain this by special code added by Robert to construct those paths
> from what getenv("DJDIR") returned. IIRC, that is the reason why GCC
> refuses to run if DJGPP or DJDIR are not defined in the environment.
>
Development version of gcc-2.97 tries to find real prefix from location
of gcc binary so I think it's no more problem. However it may be usefull
to leave these checks in to force poeple to fix broken installations
About the test for DJGPP and DJDIR environment variables.
At time of gcc-2.8.1 gcc went into infinite loop while trying to
expand when DJDIR was not defined. Therefore I added check
for environment variables to refuse to work if these variables are not
defined.
Now we have also another example: MINGW port of gcc-2.95.2 uses
relative prefix like gcc-2.97
Andris
- Raw text -