瀏覽代碼

- 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 -

Jonas Maebe 13 年之前
父節點
當前提交
29111f957e
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      packages/fcl-fpcunit/src/fpcunit.pp

+ 7 - 1
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}