mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 16:48:12 +02:00
* don't check exepath when linking on target
This commit is contained in:
parent
c54a181d65
commit
1fcc82e61a
@ -137,7 +137,7 @@ begin
|
|||||||
3. unit search path
|
3. unit search path
|
||||||
4. local object path
|
4. local object path
|
||||||
5. global object path
|
5. global object path
|
||||||
6. exepath }
|
6. exepath (not when linking on target) }
|
||||||
found:=false;
|
found:=false;
|
||||||
if unitpath<>'' then
|
if unitpath<>'' then
|
||||||
found:=FindFile(s,unitpath,foundfile);
|
found:=FindFile(s,unitpath,foundfile);
|
||||||
@ -149,7 +149,7 @@ begin
|
|||||||
found:=current_module.localobjectsearchpath.FindFile(s,foundfile);
|
found:=current_module.localobjectsearchpath.FindFile(s,foundfile);
|
||||||
if (not found) then
|
if (not found) then
|
||||||
found:=objectsearchpath.FindFile(s,foundfile);
|
found:=objectsearchpath.FindFile(s,foundfile);
|
||||||
if (not found) then
|
if not(cs_link_on_target in aktglobalswitches) and (not found) then
|
||||||
found:=FindFile(s,exepath,foundfile);
|
found:=FindFile(s,exepath,foundfile);
|
||||||
if not(cs_link_extern in aktglobalswitches) and (not found) then
|
if not(cs_link_extern in aktglobalswitches) and (not found) then
|
||||||
Message1(exec_w_objfile_not_found,s);
|
Message1(exec_w_objfile_not_found,s);
|
||||||
@ -188,7 +188,7 @@ begin
|
|||||||
1. cwd
|
1. cwd
|
||||||
2. local libary dir
|
2. local libary dir
|
||||||
3. global libary dir
|
3. global libary dir
|
||||||
4. exe path of the compiler }
|
4. exe path of the compiler (not when linking on target) }
|
||||||
found:=FindFile(s,'.'+source_info.DirSep,foundfile);
|
found:=FindFile(s,'.'+source_info.DirSep,foundfile);
|
||||||
if (not found) and (current_module.outputpath^<>'') then
|
if (not found) and (current_module.outputpath^<>'') then
|
||||||
found:=FindFile(s,current_module.outputpath^,foundfile);
|
found:=FindFile(s,current_module.outputpath^,foundfile);
|
||||||
@ -196,7 +196,7 @@ begin
|
|||||||
found:=current_module.locallibrarysearchpath.FindFile(s,foundfile);
|
found:=current_module.locallibrarysearchpath.FindFile(s,foundfile);
|
||||||
if (not found) then
|
if (not found) then
|
||||||
found:=librarysearchpath.FindFile(s,foundfile);
|
found:=librarysearchpath.FindFile(s,foundfile);
|
||||||
if (not found) then
|
if not(cs_link_on_target in aktglobalswitches) and (not found) then
|
||||||
found:=FindFile(s,exepath,foundfile);
|
found:=FindFile(s,exepath,foundfile);
|
||||||
foundfile:=ScriptFixFileName(foundfile);
|
foundfile:=ScriptFixFileName(foundfile);
|
||||||
findlibraryfile:=found;
|
findlibraryfile:=found;
|
||||||
@ -664,7 +664,10 @@ initialization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.37 2003-06-12 16:41:51 peter
|
Revision 1.38 2003-09-14 21:33:11 peter
|
||||||
|
* don't check exepath when linking on target
|
||||||
|
|
||||||
|
Revision 1.37 2003/06/12 16:41:51 peter
|
||||||
* add inputfile prefix to ppas/link.res
|
* add inputfile prefix to ppas/link.res
|
||||||
|
|
||||||
Revision 1.36 2003/05/09 17:47:02 peter
|
Revision 1.36 2003/05/09 17:47:02 peter
|
||||||
|
@ -1907,8 +1907,11 @@ begin
|
|||||||
UnitSearchPath.AddPath(FpcDir+'units/'+lower(target_info.shortname)+'/rtl',false);
|
UnitSearchPath.AddPath(FpcDir+'units/'+lower(target_info.shortname)+'/rtl',false);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{ Add exepath if the exe is not in the current dir, because that is always searched already }
|
{ Add exepath if the exe is not in the current dir, because that is always searched already.
|
||||||
if ExePath<>GetCurrentDir then
|
Do not add it when linking on the target because then we can maybe already find
|
||||||
|
.o files that are not for the target }
|
||||||
|
if (ExePath<>GetCurrentDir) and
|
||||||
|
not(cs_link_on_target in initglobalswitches) then
|
||||||
UnitSearchPath.AddPath(ExePath,false);
|
UnitSearchPath.AddPath(ExePath,false);
|
||||||
{ Add unit dir to the object and library path }
|
{ Add unit dir to the object and library path }
|
||||||
objectsearchpath.AddList(unitsearchpath,false);
|
objectsearchpath.AddList(unitsearchpath,false);
|
||||||
@ -1964,7 +1967,10 @@ finalization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.104 2003-09-06 10:41:54 olle
|
Revision 1.105 2003-09-14 21:33:11 peter
|
||||||
|
* don't check exepath when linking on target
|
||||||
|
|
||||||
|
Revision 1.104 2003/09/06 10:41:54 olle
|
||||||
+ compiler now define abi macros for powerpc FPC_ABI_AIX or FPC_ABI_SYSV
|
+ compiler now define abi macros for powerpc FPC_ABI_AIX or FPC_ABI_SYSV
|
||||||
|
|
||||||
Revision 1.103 2003/09/05 17:41:12 florian
|
Revision 1.103 2003/09/05 17:41:12 florian
|
||||||
|
Loading…
Reference in New Issue
Block a user