mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-04 09:50:31 +01:00
* it makes no sense to search the windows dirs for dlls when cross compiling
git-svn-id: trunk@17687 -
This commit is contained in:
parent
eb51c6f1b6
commit
81bd7867b3
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user