Browse Source

Link against libstdc++ and libc to avoid linking error for openbsd OS

git-svn-id: trunk@41982 -
pierre 6 years ago
parent
commit
b4baf9b49c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/test/cg/tcppcl2.pp

+ 4 - 0
tests/test/cg/tcppcl2.pp

@@ -4,6 +4,10 @@ program tcppcl2;
 
 {$mode objfpc}
 {$L cpptcl2.o}
+{$ifdef openbsd}
+  {$linklib stdc++}
+  {$linklib c}
+{$endif}
 
 type
   TestClass = cppclass external