mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-23 14:36:08 +02:00
* fix -rpath passing to linker for Windows OS by
avoiding use of single quotes. * Use 'ulimit -t ' instead of timeout for bash shells. git-svn-id: trunk@19477 -
This commit is contained in:
parent
37432368e5
commit
e366c013e3
@ -730,7 +730,9 @@ begin
|
||||
if Config.NeedLibrary then
|
||||
begin
|
||||
if CompilerTarget<>'darwin' then
|
||||
args:=args+' -Fl'+TestOutputDir+' ''-k-rpath .'''
|
||||
{ do not use single quote for -k as they are mishandled on
|
||||
Windows Shells }
|
||||
args:=args+' -Fl'+TestOutputDir+' -k-rpath -k.'
|
||||
else
|
||||
args:=args+' -Fl'+TestOutputDir;
|
||||
end;
|
||||
@ -1115,11 +1117,13 @@ begin
|
||||
|
||||
if UseTimeout then
|
||||
begin
|
||||
execcmd:=execcmd+'timeout -9 ';
|
||||
if Config.Timeout=0 then
|
||||
Config.Timeout:=DefaultTimeout;
|
||||
str(Config.Timeout,s);
|
||||
execcmd:=execcmd+s;
|
||||
if (RemoteShellBase='bash') then
|
||||
execcmd:=execcmd+'ulimit -t '+s+'; '
|
||||
else
|
||||
execcmd:=execcmd+'timeout -9 '+s;
|
||||
end;
|
||||
{ as we moved to RemotePath, if path is not absolute
|
||||
we need to use ./execfilename only }
|
||||
|
Loading…
Reference in New Issue
Block a user