X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Dong Soo Kim To: djgpp AT delorie DOT com Date: Fri, 11 Jan 2002 09:21:37 +1100 (EST) X-X-Sender: dsk666 AT hummel DOT orchestra DOT cse DOT unsw DOT EDU DOT AU cc: martinSteuer AT gmx DOT de Subject: Re: Setting Env Var from within make In-Reply-To: <5.0.2.1.2.20020110113803.009e0200@pop.gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 10 Jan 2002, Martin Steuer wrote: > I was wondering why this doesn't work: > Setting an environment variable via the DOS set-command even within a > simple make-rule did not change the actual environment. Is this a normal > behavior and is there any way to circumvent this? Not sure if this applies to your situation, but I've found that the environment in Win9x seems to be cached in memory. Changing the config.sys and autoexec.bat files requires a restart before you can use the new settings. And doing a "set" only changes the environment for that shell session, so if you're trying to call a shell program from within your make file, it could possibly be the source of the problem good luck ..