On debian bookworm, distutils invokes gcc as x86_64-linux-gnu-gcc, so allow command line elements ending in "-gcc" as well as command line elements being exactly "gcc". Without this change, -std=c99 doesn't get added to the compile command line. Surprisingly, it still compiles with gcc 12, though.
On debian bookworm, distutils invokes gcc as x86_64-linux-gnu-gcc, so allow command line elements ending in "-gcc" as well as command line elements being exactly "gcc". Without this change,
-std=c99
doesn't get added to the compile command line. Surprisingly, it still compiles with gcc 12, though.