Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ateng.ateng.com!chip From: chip@ateng.ateng.com (Chip Salzenberg) Newsgroups: gnu.utils.bug Subject: GNU Make 3.56: Feature: no variables in environment Message-ID: Date: 11 Oct 89 15:56:32 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32 [FEATURE] Include all variables in child environment only if VARS_IN_ENV is defined. Large variable definitions can swamp a child's environment, resulting in exec() failure with E2BIG. You may want to reverse the #ifdef and make NO_VARS_IN_ENV definable from make's Makefile. Index: variable.c *************** *** 383,389 **** register char *p = v->name; ! if (v->origin == o_default ! || streq (p, "MAKELEVEL")) continue; if (*p != '_' && (*p < 'A' || *p > 'Z') --- 383,395 ---- register char *p = v->name; ! #ifdef VARS_IN_ENV ! if (v->origin == o_default) continue; + #else + if ((v->origin != o_env) && (v->origin != o_env_override)) + continue; + #endif + if (streq (p, "MAKELEVEL")) + continue; if (*p != '_' && (*p < 'A' || *p > 'Z')