Prechádzať zdrojové kódy

* applied fix for #41161 as proposed by Pierre

florian 6 mesiacov pred
rodič
commit
fd72ed8c56
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      compiler/ncgcon.pas

+ 4 - 1
compiler/ncgcon.pas

@@ -134,7 +134,10 @@ implementation
              { :-(, we must generate a new entry }
              if not(assigned(lab_real)) then
                begin
-                  current_asmdata.getlocaldatalabel(lastlabel);
+                  if create_smartlink_library then
+                    current_asmdata.getglobaldatalabel(lastlabel)
+                  else
+                    current_asmdata.getlocaldatalabel(lastlabel);
                   entry^.Data:=lastlabel;
                   lab_real:=lastlabel;
                   maybe_new_object_file(current_asmdata.asmlists[al_typedconsts]);