https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77669 --- Comment #2 from wgh at beyondunreal dot com --- It looks like LTO somehow breaks constructors for static variables. I have no better idea ATM.