mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* only prepend the sysroot path to -Fl paths if these paths are absolute;
if they are not, they should be interpreted relative to the current directory instead (solves compiling tests that depend on a library when cross-testing for a platform with a sysroot) git-svn-id: trunk@29825 -
This commit is contained in:
parent
bc3d495285
commit
f886fe49d6
@ -1473,10 +1473,16 @@ begin
|
||||
Message2(option_obsolete_switch_use_new,'-Fg','-Fl');
|
||||
'l' :
|
||||
begin
|
||||
if ispara then
|
||||
ParaLibraryPath.AddPath(sysrootpath,More,false)
|
||||
if path_absolute(More) then
|
||||
if ispara then
|
||||
ParaLibraryPath.AddPath(sysrootpath,More,false)
|
||||
else
|
||||
LibrarySearchPath.AddPath(sysrootpath,More,true)
|
||||
else
|
||||
LibrarySearchPath.AddPath(sysrootpath,More,true);
|
||||
if ispara then
|
||||
ParaLibraryPath.AddPath('',More,false)
|
||||
else
|
||||
LibrarySearchPath.AddPath('',More,true);
|
||||
end;
|
||||
'L' :
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user