Tech Tip: Overriding the C compiler with ExtUtils::MakeMaker
In order to override the C compiler with ExtUtils::MakeMaker, one can do something like:
perl Makefile.PL CC=/usr/bin/clang
Which will make the "CC" variable in the generated makefile be set to /usr/bin/clang instead of the default. Apparently, setting the CC environment variable does not work like it does with CMake.
Thanks to Sisyphus for the tip.