Meson should check if the target libc provides stack smashing protection routines. If not, it should automatically add a dependency on libssp, which contains generic implementations of those routines.
See https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/285#note_1524407