mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 06:54:05 +02:00
* fixed linux compile
git-svn-id: trunk@5117 -
This commit is contained in:
parent
9238003e4f
commit
d21842fe61
@ -1108,7 +1108,7 @@ implementation
|
||||
{$else macos}
|
||||
p:=GetEnvPchar('PATH');
|
||||
{$endif macos}
|
||||
FindFilePChar(hs1,p,exepath);
|
||||
FindFilePChar(hs1,p,false,exepath);
|
||||
FreeEnvPChar(p);
|
||||
exepath:=ExtractFilePath(exepath);
|
||||
end;
|
||||
|
@ -2134,7 +2134,7 @@ begin
|
||||
fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'),false);
|
||||
if fpcdir='' then
|
||||
begin
|
||||
if PathExists('/usr/local/lib/fpc/'+version_string) then
|
||||
if PathExists('/usr/local/lib/fpc/'+version_string,true) then
|
||||
fpcdir:='/usr/local/lib/fpc/'+version_string+'/'
|
||||
else
|
||||
fpcdir:='/usr/lib/fpc/'+version_string+'/';
|
||||
|
Loading…
Reference in New Issue
Block a user