Link against libc to avoid __guard_local not found symbol failure at link time for OpenBSD target

git-svn-id: trunk@41981 -
This commit is contained in:
pierre 2019-05-04 12:38:23 +00:00
parent 079d616978
commit e7e96f98b2

View File

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