1F77(3) User Contributed Perl Documentation F77(3)
2
3
4
6 ExtUtils::F77 - Simple interface to F77 libs
7
9 This module tries to figure out how to link C programs with Fortran
10 subroutines on your system. Basically one must add a list of Fortran
11 runtime libraries. The problem is their location and name varies with
12 each OS/compiler combination! It was originally developed to make
13 building and installation of the PGPLOT module easier, which links to
14 the pgplot Fortran graphics library. It is now used by a numnber of
15 perl modules.
16
17 This module tries to implement a simple 'rule-of-thumb' database for
18 various flavours of UNIX systems. A simple self-documenting Perl
19 database of knowledge/code for figuring out how to link for various
20 combinations of OS and compiler is embedded in the modules Perl code.
21 Please help save the world by submitted patches for new database
22 entries for your system at <https://github.com/PDLPorters/extutils-f77>
23
24 Note the default on most systems is now to search for a generic 'GNU'
25 compiler which can be gfortran, g77, g95 or fort77 (in that order based
26 on usage) and then find the appropriate link libraries automatically.
27 (This is the 'Generic' 'GNU' database entry in the code.)
28
29 The library list which the module returns can be explicitly overridden
30 by setting the environment variable F77LIBS, e.g.
31
32 % setenv F77LIBS "-lfoo -lbar"
33 % perl -MExtUtils::F77 -e 'print ExtUtils::F77->compiler, "\n"'
34 ...
35
37 use ExtUtils::F77; # Automatic guess
38 use ExtUtils::F77 qw(sunos); # Specify system
39 use ExtUtils::F77 qw(linux g77); # Specify system and compiler
40 $fortranlibs = ExtUtils::F77->runtime;
41
43 The following are all class methods.
44
45 runtime
46 Returns a list of F77 runtime libraries.
47
48 $fortranlibs = ExtUtils::F77->runtime;
49
50 runtimeok
51 Returns TRUE only if runtime libraries have been found successfully.
52
53 trail_
54 Returns true if F77 names have trailing underscores.
55
56 compiler
57 Returns command to execute the compiler (e.g. 'f77').
58
59 cflags
60 Returns compiler flags.
61
62 testcompiler
63 Test to see if compiler actually works.
64
66 To debug this module, and/or get more information about its workings,
67 set $ExtUtils::F77::DEBUG to a true value. If set, it will "warn"
68 various information about its operations.
69
70 As of version 1.22, this module will no longer print or warn if it is
71 working normally.
72
74 PDL (PDL::Minuit and PDL::Slatec), PGPLOT
75
77 Karl Glazebrook, with many other contributions (see git repository at
78 https://github.com/PDLPorters/extutils-f77)
79
80
81
82perl v5.32.0 2020-07-28 F77(3)