Browse Source

Graph package fixes
Fix aarch64-freebsd compilation failure
by restricting graph unit to i8086/i386/x86_64 CPUs.
Remove unneeded i386-linux special case.

Pierre Muller 3 years ago
parent
commit
fc1ed78232
1 changed files with 2 additions and 16 deletions
  1. 2 16
      packages/graph/fpmake.pp

+ 2 - 16
packages/graph/fpmake.pp

@@ -64,22 +64,8 @@ begin
           AddInclude('fills.inc');
           AddInclude('fills.inc');
           AddInclude('gtext.inc');
           AddInclude('gtext.inc');
         end;
         end;
-    // Graph unit Linux/i386
-    T:=P.Targets.AddUnit('graph.pp',[i386],[linux]);
-      with T.Dependencies do
-        begin
-          AddInclude('graphh.inc');
-          AddInclude('graph.inc');
-          AddInclude('fontdata.inc');
-          AddInclude('clip.inc');
-          AddInclude('palette.inc');
-          AddInclude('modes.inc');
-          AddInclude('fills.inc');
-          AddInclude('gtext.inc');
-          AddInclude('graph16.inc',[freebsd,linux]);
-        end;
-    // Graph unit other targets
-    T:=P.Targets.AddUnit('graph.pp',[go32v2,amiga,win32,win64,freebsd,msdos]);
+    // Graph unit, restricted to i8086, i386 and x86_64 CPUs 
+    T:=P.Targets.AddUnit('graph.pp',[i8086,i386,x86_64],[go32v2,amiga,win32,win64,freebsd,linux,msdos]);
       with T.Dependencies do
       with T.Dependencies do
         begin
         begin
           AddInclude('graphh.inc');
           AddInclude('graphh.inc');