X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Andris Pavenis To: djgpp-workers AT delorie DOT com Subject: Re: Fix for environ pollution Date: Fri, 29 Oct 2004 12:55:10 +0300 User-Agent: KMail/1.7.1 References: <10408121516 DOT AA22369 AT clio DOT rice DOT edu> <200410281654 DOT 51361 DOT pavenis AT latnet DOT lv> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410291255.10316.pavenis@latnet.lv> Reply-To: djgpp-workers AT delorie DOT com 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