Use weak symbols to prevent LTO if this is an option.
Idea from Matthew Dempsky.