From: Gisle Vanem <giva@bg...> - 2004-07-08 10:27:18
I have a GNU make 3.80 or more specially mingw32-make question.
Why is it that when in my shell (4NT), I specify an environment variable
"set foo=bar", this isn't accepted or picked up in a makefile as $(FOO) ?
If I on the other hand do "set FOO=bar" it works. I've always thought
Windows is case-retentive, but not case-dependent when it deals with
env-vars and filenames. A little test program using getenv() or
GetEnvironmentVariable() confirms that. I.e. it doesn't matter to
getenv() what casing "foo" is entered in. getenv("foo") returns the same
Then I fail to see why it matters to GNU make. And how it becomes case-
sensitive like this. Doesn't it use getenv() or GetEnvironmentVariable()? I
don't have the source at hand. Does it use _environ directly?