summaryrefslogtreecommitdiff
path: root/tests/test/cg/tcalext6.pp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/cg/tcalext6.pp')
-rw-r--r--tests/test/cg/tcalext6.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test/cg/tcalext6.pp b/tests/test/cg/tcalext6.pp
index 93b2375037..f162d3e3bf 100644
--- a/tests/test/cg/tcalext6.pp
+++ b/tests/test/cg/tcalext6.pp
@@ -28,9 +28,22 @@ uses ctypes;
{$if defined(CPUARMEL) and defined(FPUSOFT)}
{ for softfloat calls in the C code }
+ {$define LIBGCC_NEEDED}
+{$endif}
+
+{$ifdef OPENBSD}
+ { OpenBSD GCC uses __guard_local which is defined in crtbegin.o or crtbeginS.o}
+ {$define LIBC_NEEDED}
+{$endif}
+
+{$ifdef LIBGCC_NEEDED}
{$linklib gcc}
{$endif}
+{$ifdef LIBC_NEEDED}
+{$linklib c}
+{$endif}
+
type
int8_t = shortint;
pint8_t = ^int8_t;