Index: function.c =================================================================== RCS file: /sources/make/make/function.c,v retrieving revision 1.99 diff -u -r1.99 function.c --- function.c 18 Nov 2006 20:53:44 -0000 1.99 +++ function.c 30 Nov 2006 13:56:30 -0000 @@ -1472,9 +1472,6 @@ if (!hProcess) fatal (NILF, _("windows32_openpipe (): process_init_fd() failed\n")); - /* make sure that CreateProcess() has Path it needs */ - sync_Path_environment(); - if (!process_begin(hProcess, command_argv, envp, command_argv[0], NULL)) { /* register process for wait */ process_register(hProcess); @@ -1606,6 +1603,11 @@ envp = target_environment (NILF); */ +#ifdef WINDOWS32 + /* make sure that CreateProcess() has Path it needs */ + sync_Path_environment(); +#endif + envp = environ; /* For error messages. */