I thought that it was the Configure step of building Perl that knew how to select compiler command-line arguments for cc vs. gcc. I thought that MakeMaker just pulled out the one set of compiler options that Configure stuffed into Config.pm and so doesn't know how to adjust compiler command-line options based on cc vs. gcc.
Therefore, I don't expect CC=gcc to work when building a module (unless you get very lucky), only when building Perl itself.
The best rule is to build modules using the same environment that was used to build Perl. If I wanted to use gcc to build modules but Config.pm wanted to use cc, then I'd probably grab the source code to Perl and build it with gcc.
- tyeIn reply to Re^2: Trouble Compiling Term::ReadKey (Configure)
by tye
in thread Trouble Compiling Term::ReadKey
by Mark2117
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |