From c4d80a8a1069d54b07015e02a4bfc78cfd1d92a8 Mon Sep 17 00:00:00 2001 From: Jonas Maebe <jonas@freepascal.org> Date: Sat, 7 Apr 2012 11:11:48 +0000 Subject: [PATCH] * only try to use objdump to extract symbol liveness information if the target OS is Linux, since it's not supported on other platforms for that purpose git-svn-id: trunk@20739 - --- compiler/optdead.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/optdead.pas b/compiler/optdead.pas index 204c093172..4867b97600 100644 --- a/compiler/optdead.pas +++ b/compiler/optdead.pas @@ -351,7 +351,8 @@ const { regular nm } if not symbolprogfound then symbolprogfound:=findutil('nm',nmfullname,symbolprogfullpath); - if not symbolprogfound then + if not symbolprogfound and + (target_info.system in systems_linux) then begin { try objdump } symbolprogfound:=findutil('objdump',objdumpfullname,symbolprogfullpath);