https://unix.stackexchange.com/questions/680335/how-to-compi... claims that it's as simple as some tiny patching, and another answer links to a github repo of interest. The funny thing is, I really thought that version of Linux used a patched gcc, but maybe I'm misremembering.