Browse Source

Add $PIC OFF directive for FPC compilation

git-svn-id: trunk@38431 -
pierre 7 years ago
parent
commit
7e98f58c8a
3 changed files with 8 additions and 1 deletions
  1. 2 1
      tests/test/tasm10.pp
  2. 3 0
      tests/test/tasm21a.pp
  3. 3 0
      tests/test/tasm21b.pp

+ 2 - 1
tests/test/tasm10.pp

@@ -4,6 +4,7 @@
 {$ifdef fpc}
 {$mode delphi}
 {$asmmode intel}
+{$PIC OFF}
 {$endif}
 
 type
@@ -51,4 +52,4 @@ type
      Halt(2);
    writeln('ok');
  end.
- 
+ 

+ 3 - 0
tests/test/tasm21a.pp

@@ -1,6 +1,9 @@
 { %CPU=i386 }
 
 {$MODE TP}
+{$ifdef FPC}
+  {$PIC OFF}
+{$endif FPC}
 
 program tasm21a;
 

+ 3 - 0
tests/test/tasm21b.pp

@@ -2,6 +2,9 @@
 
 {$MODE TP}
 {$ASMMODE INTEL}
+{$ifdef FPC}
+  {$PIC OFF}
+{$endif FPC}
 
 program tasm21b;