When building a Perl module ExtUtils::MakeMaker uses the flags defined in Config.pm (see perldoc Config) for values such as ccflags and ldflags.
How do I override theses values (short of editing the Makefile.PL)?
perl Makefile.PL ldflags=<options>
does not seem to work.
Context:
I am trying to compile Term::Readline::Gnu on OS X 10.6.
The default OS X perl is a universal binary and thus has ccflags like -arch i386 -arch ppc etc.
On the other hand my version of Gnu Readline (6.0) has been compiled from source for -arch i386 only. As such it does not contain the expected symbols for a module trying to link to it using -arch ppc.