New comment by TinfoilSubmarine on void-packages repository https://github.com/void-linux/void-packages/issues/48500#issuecomment-1924754633 Comment: As mentioned in [this thread](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634#c4), these are some options: > libgomp can be only dlopened in threaded apps if there is still space in the static TLS surplus, which unfortunately some versions of glibc use even for normal TLS rather than just static TLS. > So, LD_PRELOAD=libgomp.so.1, or link the program with libgomp.so.1 rather than just its libraries, or dlopen it before spawning threads. > This is how glibc behaves, and unless we want to slow down libgomp extremely, there is nothing that can be done about it on the GCC side.