mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 03:48:07 +02:00
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:
parent
079d616978
commit
e7e96f98b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user