Skip to content

Remove explicit dependency on libssp

Remove explicit dependency on libssp, as it's not needed anymore. Also fix a compilation issue on Windows of the perf utility.

Linking explicitly with libssp was required for toolchains where the target libc doesn't implement stack smashing protection routines on its own, and instead delegates to the generic implementations provided by libssp. Notably, this was the case of mingw-w64 toolchains.

After discussion upstream with Meson developers [1], the stance taken is that Meson users (and Meson itself) shall have no knowledge of the libc internals and whether libssp is required. instead, libc's should declare a dependency on the generic libssp on their own by means of .spec files [2].

Following the discussion in Meson Github, the issue was then fixed in mingw-w64 upstream [3].

References:

Merge request reports