Missing dependency on pthread
@ebassi
Submitted by Emmanuele Bassi Link to original bug (#791052)
Description
The terminal server calls pthread_atfork(), but the GNOME Terminal build does not explicitly depend on pthreads. The reason why it works is because there's a transitive implicit dependency coming from GLib — but GLib may not necessarily build with pthreads or exposes this dependency explicitly in any way. I only caught this because the pkg-config file for GLib temporarily lost the pthread variables in the Meson build.
Ideally, GNOME Terminal should use the AX_PTHREADS m4 macro to check for pthread, and add PTHREADS_CFLAGS and PTHREADS_LIBS to the terminal server target, since it's using pthread API directly, instead of GLib wrappers.
Resolution: RESOLVED FIXED