www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/10/17:22:22

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Dong Soo Kim <dsk666 AT cse DOT unsw DOT edu DOT au>
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: <Pine.GSO.4.43.0201110916160.12078-100000@hummel.orchestra.cse.unsw.EDU.AU>
MIME-Version: 1.0
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

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 ..

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019