Mail Archives: djgpp/1996/08/29/06:26:42
On 27 Aug 1996, Alexander Lehmann wrote:
> Sortof, if you run a single djgpp compiled program, you will get long
> filenames, even though it is set to n in djgpp.env, but if this
> program runs another djgpp program (e.g. gcc running cc1 or make
> running anything), LFN=n will come into effect (this is due to a bug
> in the startup code). So when you are using make, you have to set it
> one way or the other, since otherwise make will find files that gcc
> doesn't find (something like that).
Actually, it's the other way around usually: the spawned programs behave
more cosistently wrt LFN settings than the parent program. That's because
child programs usually inherit the environment of the parent, so when the
child program starts, LFN is already explicitly in the environment, and
the child program doesn't need to issue LFN calls to find out whether LFN
is supported by default. Since there are bugs in the startup code
exactly in the case where LFN API is supported, but LFN=y is NOT set
explicitly, child programs behave better.
The problems with Make are specific to Make: the current DJGPP port just
plainly doesn't support long filenames, no matter what you set LFN to.
- Raw text -