Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, February 9, 2022
 
 

perlgcc (1)

Name

perlgcc - Compile perl modules using gcc.

Synopsis

perlgcc Makefile.PL; make

Description

User Contributed Perl Documentation                                 PERLGCC(1)



NAME
       perlgcc - Compile perl modules using gcc.

SYNOPSIS
        perlgcc Makefile.PL; make

DESCRIPTION
       When perl is built it saves the name of the compiler and any compiler
       flags in its configuration files, and then uses these saved settings
       when any additional modules are built.  The perl shipped with Solaris
       is built with the Forte compilers rather than gcc.

       If add-on modules are built with the Forte compilers, everyting works
       as expected.  However, if gcc is used to build add-on modules, the
       saved configuration is incorrect as it assumes that the Forte compiler
       will be present.

       This command provides a set of perl configuration files that are
       configured to use gcc as the compiler rather than the Forte compiler.
       The default configuration files are not modified, instead a replacement
       set of files are transparently substituted for the duration of the
       perlgcc command.

       Instead of invoking "perl Makefile.PL" to generate the makefile needed
       to compile a module, "perlgcc Makefile.PL" should be used instead.  All
       command-line arguments to perlgcc are passed unmodified to "perl".

       If you use the CPAN.pm module, instead of invoking "perl -MCPAN -e
       shell", you should use "perlgcc -MCPAN -e shell" instead, and use as
       normal.

ENVIRONMENT VARIABLES
       PERL5LIB

       This is modified to point to the location of the replacement perl
       configuration files.

   ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

         ___________________________________________________________
        |       ATTRIBUTE TYPE        |      ATTRIBUTE VALUE        |
        |_____________________________|_____________________________|
        | Availability                | CPAN (http://www.cpan.org)  |
        |_____________________________|_____________________________|
        | Interface Stability         | Evolving                    |
        |_____________________________|_____________________________|

SEE ALSO
       perl(1), perlrun(1), perlsolaris(1).



perl v5.32.0                      2021-12-22                        PERLGCC(1)