* check target system instead of using an ifdef

git-svn-id: trunk@44394 -
This commit is contained in:
Jonas Maebe 2020-03-29 14:52:41 +00:00
parent eb9a4eca91
commit 3b8979210d

View File

@ -1067,11 +1067,10 @@ begin
{ Call linker }
SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
{$ifndef darwin}
Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename));
{$else darwin}
Replace(cmdstr,'$EXE',maybequoted(ExpandFileName(current_module.sharedlibfilename)));
{$endif darwin}
if not(target_info.system in systems_darwin) then
Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename))
else
Replace(cmdstr,'$EXE',maybequoted(ExpandFileName(current_module.sharedlibfilename)));
Replace(cmdstr,'$OPT',Info.ExtraOptions);
Replace(cmdstr,'$TARGET',targetstr);
Replace(cmdstr,'$EMUL',EmulStr);