Bläddra i källkod

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

git-svn-id: trunk@31048 -
Jonas Maebe 10 år sedan
förälder
incheckning
2cdf969649
1 ändrade filer med 1 tillägg och 1 borttagningar
  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.   }
          { treated as references to external symbols, needed for darwin.   }
 
 
          { make sure we don't change the binding of real external symbols }
          { 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
            begin
              if (po_global in pd.procoptions) or
              if (po_global in pd.procoptions) or
                 (cs_profile in current_settings.moduleswitches) then
                 (cs_profile in current_settings.moduleswitches) then