You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Thomas Gutzmann <th...@gutzmann.com> on 2004/09/15 07:32:37 UTC
Linking Perl Modules with gcc - avoiding conflicts with cc
Hi,
under Solaris 9 with Perl 5.6.1 pre-installed, I just fought with these
infamous error messages
cc: unrecognized option `-KPIC'
cc: language depend not recognized
which are quite resistant against all tricks like linking cc to gcc and
so on.
The underlying reason is that Perl was installed with the Sun "C"
compiler.
There are several hints in the internet (and this forum) how to patch
Makefile.
An more elegant way is to give Makefile.PL the correct parameters:
perl Makefile.PL CC=gcc LD=gcc OPTIMIZE=-O CCCDLFLAGS=-fpic
Not a s sexy as patching, though ;-)
Cheers,
Thomas G.
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html