https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68195
--- Comment #7 from Matthias Goldhoorn <matthias at goldhoorn dot eu> --- I played around with different versions of the GCC. I figured out that default gcc on ubuntu 15.10 adds --as-needed to the linker flag when i call the compiler. This causes the resulting binary to being minimal and therefor not cause any problems. When removing this flag the library crashes. Furthermore i compiled several compilers on debian and ubuntu and all from this gcc-5.2 branch has the problem that my library segfaults. I updated my git repro with the preprocessed files to make testing easier