in reply to Re: Compile perl with custom compiler path, perlbrew solution preferred
in thread Compile perl with custom compiler path, perlbrew solution preferred

thank you. It worked as expected. It was prompting me to answer many questions and did not use the sane defaults as usual, I guess the presence of the FLAGS triggers this behaviour. I had to add -d to the FLAGS. And because another such perl existed, I also had to give it a different name:

PERLBREW_CONFIGURE_FLAGS='-d -Dcc=/usr/local/gcc82/bin/gcc' perlbrew i +nstall 5.38.2 --as 5.38.2.gcc82

And I can confirm that any C code embedded via Inline::C is compiled with the expected compiler.