ladybird/Meta/CMake
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
..
Superbuild LibUnicode: Use consistent variable naming in unicode_data.cmake 2021-09-30 17:37:57 +01:00
all_the_debug_macros.cmake LibWasm: Implement module validation 2021-11-11 09:20:04 +01:00
code_generators.cmake Meta: Use Lagom:: namespaced names for code generators 2021-09-15 19:04:52 +04:30
common_options.cmake HeaderCheck: It checks some of your headers 2021-10-20 09:20:18 +01:00
commonmark_spec.cmake Tests: Test LibMarkdown against commonmark test suite 2021-08-31 16:53:51 +02:00
lagom_options.cmake Meta: Enable ccache for Lagom by default 2021-10-21 04:35:10 -07:00
lagom-install-config.cmake Lagom: Add proper install rules 2021-07-29 21:46:25 +01:00
serenity_components.cmake Meta: Fix typos 2021-10-01 01:06:40 +01:00
serenity_options.cmake Meta: Move all options to targetname_options.cmake files 2021-09-15 19:04:52 +04:30
unicode_data.cmake LibUnicode: Move number formatting code generator to UnicodeNumberFormat 2021-11-12 20:46:38 +00:00
utils.cmake Meta: Resolve cyclic dependency between LibPthread and libc++ 2021-11-13 11:15:33 +00:00
wasm_spec_tests.cmake Meta: Update WebAssembly testsuite branch name 2021-11-11 09:20:04 +01:00