Mail Archives: djgpp-workers/2004/10/29/05:55:18
On Friday 29 October 2004 11:33, Esa A E Peuha wrote:
> On Thu, 28 Oct 2004, Andris Pavenis wrote:
> > I think, that a better way is to use a separate source file in libc which
> > contains definition of _environ only. Perhaps it would be best to revert
> > the change of lib/djgpp.djl and put _environ in a separate fiel.
>
> That would be easy to do, but it wouldn't solve anything; we still need
> the linker script to PROVIDE environ.
It seems, that defining _environ with PROVIDE in linker script doesn't break
even when djgpp-2.03 is being used. So it seems to be safe provide both
in source file and in linker script.
If we don't have _environ defined in libc.a then GCC versions using own copy
of linker script will break. I can put linker script from current CVS of DJGPP
in next releases og GCC for DJGPP, but it still will break for those who are
using earlier versions.
Andris
- Raw text -