* it makes no sense to search the windows dirs for dlls when cross compiling

git-svn-id: trunk@17687 -
This commit is contained in:
florian 2011-06-07 19:24:53 +00:00
parent eb51c6f1b6
commit 81bd7867b3

View File

@ -249,7 +249,9 @@ Implementation
Found:=FindFile(s,'.'+source_info.DirSep,false,founddll);
if (not found) then
Found:=librarysearchpath.FindFile(s,false,founddll);
if (not found) then
{ when cross compiling, it is pretty useless to search windir etc. for dlls }
if (not found) and (source_info.system=target_info.system) then
begin
sysdir:=FixPath(GetEnvironmentVariable('windir'),false);
Found:=FindFile(s,sysdir+';'+sysdir+'system'+source_info.DirSep+';'+sysdir+'system32'+source_info.DirSep,false,founddll);