make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why gmake create two path environment variables


From: freeman . liu
Subject: Why gmake create two path environment variables
Date: Mon, 20 Oct 2008 14:16:24 +0800


Hi, Gurus,

I found an PATH environment variable related issue with gmake.

In Windows/Dos, the env var is case insensitive. On my system, the command "set path" give the following result.

*******************************************************************************************************************
D:\tmp>set path
Path="C:\Program Files\CSL Arm Toolchain\bin";C:\Perl10\site\bin;C:\Perl10\bin;C
:\Apps\ARM\RVCT\Programs\2.2\349\win_32-pentium;C:\Apps\ARM\bin\win_32-pentium;C
:\Perl\bin;N:\epoc32\tools;N:\epoc32\gcc\bin;N:\epoc32\gcc_mingw\bin;C:\Symbian\
SITK\stat\bin;C:\Symbian\SITK;C:\Symbian\SITK\edgd\bin\;C:\Symbian\SITK\cbr;C:\S
ymbian\SITK\ucc\bin;C:\Symbian\SITK\ucc\SyncService\bin;C:\Symbian\SITK\ucc\Test
DriverService\bin;C:\Symbian\SITK\sqlite-db-creator;C:\Symbian\SITK\testdriver;C
:\Symbian\SITK\imgcheck;C:\Symbian\SITK\SystemModelGenerator;;C:\Apps\Reltools;C
:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\i386;c:\Progra
m Files\Novell\ZENworks\;C:\Program Files\QuickTime\QTSystem\;C:\APPS\Nokia\Carb
ide.c++ v1.3\x86Build\Symbian_Tools\Command_Line_Tools;C:\Apps\Perforce;C:\Apps\
Perforce\;C:\Program Files\Common Files\Symbian\Tools;c:\apps\Coverity\bin;C:\Ap
ps\Coverity\bin;C:\Apps\ARM\Utilities\FLEXlm\9.2\release\win_32-pentium;C:\Progr
am Files\Rational\TestRealTime\bin\intel\win32;C:\Program Files\Rational\common;
C:\Program Files\Vim\vim71\;\epoc32\tools\perllib;\test\common\runtest;C:\Symbia
n\P4\EPOC\DV4\personal\2008\kunxu\test\common\runtest;C:\Symbian\9.5\epoc32\tool
s\perllib;C:\ECloud\i686_win32\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
*******************************************************************************************************************

While with a makefile like this,
all:
        set Path

I get this result.
*******************************************************************************************************************
set Path
PATH=c:\symbian\9.5\epoc32\tools\;c:\symbian\9.5\epoc32\gcc\bin\;C:\Program File
s\CSL Arm Toolchain\bin;C:\Perl10\site\bin;C:\Perl10\bin;C:\Apps\ARM\RVCT\Progra
ms\2.2\349\win_32-pentium;C:\Apps\ARM\bin\win_32-pentium;C:\Perl\bin;N:\epoc32\t
ools;N:\epoc32\gcc\bin;N:\epoc32\gcc_mingw\bin;C:\Symbian\SITK\stat\bin;C:\Symbi
an\SITK;C:\Symbian\SITK\edgd\bin\;C:\Symbian\SITK\cbr;C:\Symbian\SITK\ucc\bin;C:
\Symbian\SITK\ucc\SyncService\bin;C:\Symbian\SITK\ucc\TestDriverService\bin;C:\S
ymbian\SITK\sqlite-db-creator;C:\Symbian\SITK\testdriver;C:\Symbian\SITK\imgchec
k;C:\Symbian\SITK\SystemModelGenerator;;C:\Apps\Reltools;C:\WINDOWS\system32;C:\
WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\i386;c:\Program Files\Novell\ZENwork
s\;C:\Program Files\QuickTime\QTSystem\;C:\APPS\Nokia\Carbide.c++ v1.3\x86Build\
Symbian_Tools\Command_Line_Tools;C:\Apps\Perforce;C:\Apps\Perforce\;C:\Program F
iles\Common Files\Symbian\Tools;c:\apps\Coverity\bin;C:\Apps\Coverity\bin;C:\App
s\ARM\Utilities\FLEXlm\9.2\release\win_32-pentium;C:\Program Files\Rational\Test
RealTime\bin\intel\win32;C:\Program Files\Rational\common;C:\Program Files\Vim\v
im71\;\epoc32\tools\perllib;\test\common\runtest;C:\Symbian\P4\EPOC\DV4\personal
\2008\kunxu\test\common\runtest;C:\Symbian\9.5\epoc32\tools\perllib;C:\ECloud\i6
86_win32\bin;
Path=c:\symbian\9.5\epoc32\tools\;c:\symbian\9.5\epoc32\gcc\bin\;C:\Program File
s\CSL Arm Toolchain\bin;C:\Perl10\site\bin;C:\Perl10\bin;C:\Apps\ARM\RVCT\Progra
ms\2.2\349\win_32-pentium;C:\Apps\ARM\bin\win_32-pentium;C:\Perl\bin;N:\epoc32\t
ools;N:\epoc32\gcc\bin;N:\epoc32\gcc_mingw\bin;C:\Symbian\SITK\stat\bin;C:\Symbi
an\SITK;C:\Symbian\SITK\edgd\bin\;C:\Symbian\SITK\cbr;C:\Symbian\SITK\ucc\bin;C:
\Symbian\SITK\ucc\SyncService\bin;C:\Symbian\SITK\ucc\TestDriverService\bin;C:\S
ymbian\SITK\sqlite-db-creator;C:\Symbian\SITK\testdriver;C:\Symbian\SITK\imgchec
k;C:\Symbian\SITK\SystemModelGenerator;;C:\Apps\Reltools;C:\WINDOWS\system32;C:\
WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\i386;c:\Program Files\Novell\ZENwork
s\;C:\Program Files\QuickTime\QTSystem\;C:\APPS\Nokia\Carbide.c++ v1.3\x86Build\
Symbian_Tools\Command_Line_Tools;C:\Apps\Perforce;C:\Apps\Perforce\;C:\Program F
iles\Common Files\Symbian\Tools;c:\apps\Coverity\bin;C:\Apps\Coverity\bin;C:\App
s\ARM\Utilities\FLEXlm\9.2\release\win_32-pentium;C:\Program Files\Rational\Test
RealTime\bin\intel\win32;C:\Program Files\Rational\common;C:\Program Files\Vim\v
im71\;\epoc32\tools\perllib;\test\common\runtest;C:\Symbian\P4\EPOC\DV4\personal
\2008\kunxu\test\common\runtest;C:\Symbian\9.5\epoc32\tools\perllib;C:\ECloud\i6
86_win32\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
*******************************************************************************************************************

One PATH and one Path. My question is why two paths ? What is the difference betwen the normal shell
and the one in which gmake runs commands ?

Actually, when I use some perl script inside Makefiles, they can only change one the path variables
by setting $ENV{'Path'} or $ENV{'PATH'}, which make Path and PATH different and this will
prevent locating the correct executable.

Thank you,

Freeman Liu
Senior Software Engineer, Product Creation Tools
Symbian Software Ltd.
Telephone +86 (010) 58848074
Mobile 13911352150
perl -e "s//reverse achilles/e/y/ucslelctohaysi/inferentialism//print"

Experience innovation in action - visit the Smartphone Show, 21-22 October 2008, Earls Court 2, London



**********************************************************************
Symbian Software Ltd is a company registered in England and Wales with registered number 4190020 and registered office at 2-6 Boundary Row, Southwark, London, SE1 8HP, UK. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify address@hidden and delete the message and any attachments accompanying it immediately. Neither Symbian nor any of its Affiliates accepts liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy.
**********************************************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]