Explorar el Código

* fixed linux compile

git-svn-id: trunk@5117 -
peter hace 19 años
padre
commit
d21842fe61
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      compiler/globals.pas
  2. 1 1
      compiler/options.pas

+ 1 - 1
compiler/globals.pas

@@ -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;

+ 1 - 1
compiler/options.pas

@@ -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+'/';