Browse Source

* fixed linux compile

git-svn-id: trunk@5117 -
peter 19 years ago
parent
commit
d21842fe61
2 changed files with 2 additions and 2 deletions
  1. 1 1
      compiler/globals.pas
  2. 1 1
      compiler/options.pas

+ 1 - 1
compiler/globals.pas

@@ -1108,7 +1108,7 @@ implementation
 {$else macos}
 {$else macos}
           p:=GetEnvPchar('PATH');
           p:=GetEnvPchar('PATH');
 {$endif macos}
 {$endif macos}
-          FindFilePChar(hs1,p,exepath);
+          FindFilePChar(hs1,p,false,exepath);
           FreeEnvPChar(p);
           FreeEnvPChar(p);
           exepath:=ExtractFilePath(exepath);
           exepath:=ExtractFilePath(exepath);
         end;
         end;

+ 1 - 1
compiler/options.pas

@@ -2134,7 +2134,7 @@ begin
   fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'),false);
   fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'),false);
   if fpcdir='' then
   if fpcdir='' then
     begin
     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+'/'
         fpcdir:='/usr/local/lib/fpc/'+version_string+'/'
       else
       else
         fpcdir:='/usr/lib/fpc/'+version_string+'/';
         fpcdir:='/usr/lib/fpc/'+version_string+'/';