From 29111f957e341e43e1b71ba18d46d4299e1f3d67 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Wed, 11 Apr 2012 18:07:06 +0000 Subject: [PATCH] - don't include the lineinfo unit on AIX, because it doesn't have it; in general, this is also wrong because it won't work on platforms using DWARF either git-svn-id: trunk@20848 - --- packages/fcl-fpcunit/src/fpcunit.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/fcl-fpcunit/src/fpcunit.pp b/packages/fcl-fpcunit/src/fpcunit.pp index ca49fd46c9..07a1ee1696 100644 --- a/packages/fcl-fpcunit/src/fpcunit.pp +++ b/packages/fcl-fpcunit/src/fpcunit.pp @@ -18,7 +18,13 @@ unit fpcunit; {$h+} interface -{$IFNDEF MORPHOS} + +{ The following is wrong. The lineinfo unit only works on platforms that + use stabs. It does not work on platforms that use stabx or Dwarf. The + correct unit can only be safely included by compiling the main program + with -gl. Directly using any of those units won't work most of the time. +} +{$IF not defined(MORPHOS) and not defined(AIX)} {$DEFINE SHOWLINEINFO} {$ENDIF}