浏览代码

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

(cherry picked from commit ed1bbfc950e9d94a5dd3ade718b54ab5beed3452)
Pierre Muller 3 月之前
父节点
当前提交
d6d047d8a4
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      rtl/i386/math.inc

+ 4 - 2
rtl/i386/math.inc

@@ -179,8 +179,10 @@ const
     end;
 
 
-  {$ifdef OLD_ASSEMBLER}
-    {$define DISABLE_PIC_IN_EXP_REAL}
+  {$if not defined(FPC_PIC) or defined(OLD_ASSEMBLER)}
+    {$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