mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 17:51:18 +02:00
* link to libpthread at compile time on Linux to avoid problems on some
newer glibc systems when it's only loaded dynamically at run time git-svn-id: trunk@14970 -
This commit is contained in:
parent
e2dbccf017
commit
9cd0a2ff1e
@ -15,6 +15,13 @@
|
|||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
{$ifdef linux}
|
{$ifdef linux}
|
||||||
|
{ we can combine both compile-time linking and dynamic loading, in order to:
|
||||||
|
a) solve a problem on some systems with dynamically loading libpthread if
|
||||||
|
it's not linked at compile time
|
||||||
|
b) still enabling dynamically checking whether or not certain functions
|
||||||
|
are available (could also be implemented via weak linking)
|
||||||
|
}
|
||||||
|
{$linklib pthread}
|
||||||
{$define dynpthreads} // Useless on BSD, since they are in libc
|
{$define dynpthreads} // Useless on BSD, since they are in libc
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user