Browse Source

Allow compilation of rtl for i386-openbsd target with -dOLD_ASSEMBLER

Pierre Muller 2 months ago
parent
commit
ed1bbfc950
1 changed files with 3 additions and 1 deletions
  1. 3 1
      rtl/i386/math.inc

+ 3 - 1
rtl/i386/math.inc

@@ -198,7 +198,9 @@ const
 
 
   {$if not defined(FPC_PIC) or defined(OLD_ASSEMBLER)}
-    {$define DISABLE_PIC_IN_EXP_REAL}
+    {$ifndef OPENBSD}
+      {$define DISABLE_PIC_IN_EXP_REAL}
+    {$endif ndef OPENBSD}
   {$endif}
   {$define FPC_SYSTEM_HAS_EXP}
     { exp function adapted from AMath library (C) Copyright 2009-2013 Wolfgang Ehrhardt