This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to remove putenv definition from gcc.c
- To: zackw at Stanford dot EDU (Zack Weinberg)
- Subject: Re: Patch to remove putenv definition from gcc.c
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 28 Mar 2001 17:33:17 -0500 (EST)
- Cc: ghazi at caip dot rutgers dot edu, gcc-patches at gcc dot gnu dot org
> There was talk of revising collect2's interface so it didn't use
> environment variables anymore. If that ever happens, we wouldn't need
> putenv from gcc.c.
That's a good idea because the size of gcc's environment exceeds POSIX
minimums and causes trouble for systems with small ARG_MAX limits. This
caused exec failures under ultrix in the bootstrap. The problem was
resolved by hacking gnu make so it didn't export variables by default
and a small change to the gcc Makefile. However, gcc still exports
too much.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)