Message 187246 - Python tracker (original) (raw)
the proposed patch is wrong. when linking with -flto, you should pass all the relevant CFLAGS to the linker as well. Also pass -fuse-linker-plugin.
and this should be an opt-in, not the default. Depending on the architecture and the compiler version, -flto is not as stable as you want it to be.
and last, this ends up as the default for building third party extensions too, which again, I think should be an opt-in.