Files
ladybird/Userland/Libraries/LibC
Daniel Bertalan fe1726521a Meta: Resolve cyclic dependency between LibPthread and libc++
libc++ uses a Pthread condition variable in one of its initialization
functions. This means that Pthread forwarding has to be set up in LibC
before libc++ can be initialized. Also, because LibPthread is written in
C++, (at least some) parts of the C++ standard library have to be linked
against it.

This is a circular dependency, which means that the order in which these
two libraries' initialization functions are called is undefined. In some
cases, libc++ will come first, which will then trigger an assert due to
the missing Pthread forwarding.

This issue isn't necessarily unique to LibPthread, as all libraries that
libc++ depends on exhibit the same circular dependency issue.

The reason why this issue didn't affect the GNU toolchain is that
libstdc++ is always linked statically. If we were to change that, I
believe that we would run into the same issue.
2021-11-13 11:15:33 +00:00
..
2021-10-15 21:50:19 -07:00
2021-08-14 22:32:00 +01:00
2021-08-14 22:32:00 +01:00
2021-06-06 22:16:11 +02:00
2021-10-17 17:09:58 +01:00
2021-07-15 11:16:58 +02:00
2021-07-17 13:00:33 +02:00
2021-10-17 23:43:43 +01:00
2021-10-26 08:47:06 +02:00
2021-10-15 21:50:19 -07:00
2021-10-20 09:20:18 +01:00
2021-08-31 01:37:30 +02:00
2021-08-18 10:33:48 +02:00
2021-10-23 15:06:33 +02:00
2021-10-31 12:00:57 +01:00
2021-10-15 14:47:41 -07:00
2021-09-23 18:51:21 +02:00
2021-10-21 23:57:32 -07:00
2021-10-17 17:09:58 +01:00