Gavin Smith wrote:
> It uses the output of "perl -V:cc" as $CC because the perl interpreter
> may have been built with a different compiler...
> It is possible to override the C compiler given by Perl by setting
> PERL_EXT_CC when configure is run. There are also PERL_EXT_CFLAGS,
> PERL_EXT_CPPFLAGS and PERL_EXT_LDFLAGS.

Good to see that it's overridable.

But then, you should ignore $CC, $CFLAGS, $CPPFLAGS, $LDFLAGS, when it
comes to the Perl extension module. And the Autoconf tests (for iconv
in particular, but also all the other tests of tp/Texinfo/XS/configure.ac)
should be run with $PERL_EXT_CC etc., not with $CC etc.

Bruno


Reply via email to