IPO: Use -flto=auto if compiler is GCC >= 10.1

Since GCC 12.1, the `-flto` option warns unless given an explicit
LTRANS job count.

Issue: #23640
1 file changed