Browse Source

* use linklib only on darwin

git-svn-id: trunk@11029 -
florian 17 years ago
parent
commit
5c6836e794
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/test/tlib1.pp

+ 3 - 1
tests/test/tlib1.pp

@@ -8,7 +8,9 @@
 uses
   {$ifdef unix}dl,{$endif unix}sysutils;
 
+{$ifdef darwin}
 {$linklib tlib1a}
+{$endif darwin}
 
 procedure p(var a : pointer);external 'tlib1a' name 'p';
 
@@ -34,7 +36,7 @@ w:
   s2:=ExtractFilename(s2);
   writeln({ 'Func: ',s1,'} 'Source: ',s2,' Line: ',l);
   { GetLineInfo of dwarf doesn't return the function name }
-  if { (s1<>'P') or } (s2<>'tlib1.pp') or (l<>21) then
+  if { (s1<>'P') or } (s2<>'tlib1.pp') or (l<>23) then
     halt(1);
 
   writeln('ok');