Parcourir la source

* don't define asmsymbols for weak external functions as local/global

git-svn-id: trunk@31048 -
Jonas Maebe il y a 10 ans
Parent
commit
2cdf969649
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      compiler/psub.pas

+ 1 - 1
compiler/psub.pas

@@ -2191,7 +2191,7 @@ implementation
          { treated as references to external symbols, needed for darwin.   }
 
          { make sure we don't change the binding of real external symbols }
-         if not(po_external in pd.procoptions) then
+         if ([po_external,po_weakexternal]*pd.procoptions)=[] then
            begin
              if (po_global in pd.procoptions) or
                 (cs_profile in current_settings.moduleswitches) then