瀏覽代碼

* changed r16080 so that global debug labels are only created on linux
systems when smart linking and PIC are on, because on Darwin this
breaks smart linking and it's not necessary there (probably should be
disabled completely and the problem should be solved in another way)
(mantis #17593)

git-svn-id: trunk@16122 -

Jonas Maebe 15 年之前
父節點
當前提交
d1ed076618
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/aasmdata.pas

+ 2 - 1
compiler/aasmdata.pas

@@ -449,7 +449,8 @@ implementation
 
 
     procedure TAsmData.getlabel(out l : TAsmLabel;alt:TAsmLabeltype);
     procedure TAsmData.getlabel(out l : TAsmLabel;alt:TAsmLabeltype);
       begin
       begin
-        if (cs_link_smart in current_settings.globalswitches) and
+        if (target_info.system in systems_linux) and
+           (cs_link_smart in current_settings.globalswitches) and
            (alt = alt_dbgline) then
            (alt = alt_dbgline) then
           l:=TAsmLabel.createglobal(AsmSymbolDict,name,FNextLabelNr[alt],alt)
           l:=TAsmLabel.createglobal(AsmSymbolDict,name,FNextLabelNr[alt],alt)
         else
         else