* 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:
pierre 2011-10-12 12:33:24 +00:00
parent 37432368e5
commit e366c013e3

View File

@ -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 }