The fort77 utility shall conform to the Base Definitions volume
of POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines, except
that:
* The -l
library operands have the format of options, but their
position within a list of operands affects the order in which
libraries are searched.
* The order of specifying the multiple -L
options is
significant.
* Conforming applications shall specify each option separately;
that is, grouping option letters (for example, -cg
) need not
be recognized by all implementations.
The following options shall be supported:
-c
Suppress the link-edit phase of the compilation, and do
not remove any object files that are produced.
-g
Produce symbolic information in the object or
executable files; the nature of this information is
unspecified, and may be modified by implementation-
defined interactions with other options.
-s
Produce object or executable files, or both, from which
symbolic and other information not required for proper
execution using the exec family of functions defined in
the System Interfaces volume of POSIX.1‐2017 has been
removed (stripped). If both -g
and -s
options are
present, the action taken is unspecified.
-o
outfile
Use the pathname outfile, instead of the default a.out
,
for the executable file produced. If the -o
option is
present with -c
, the result is unspecified.
-L
directory
Change the algorithm of searching for the libraries
named in -l
operands to look in the directory named by
the directory pathname before looking in the usual
places. Directories named in -L
options shall be
searched in the specified order. At least ten instances
of this option shall be supported in a single fort77
command invocation. If a directory specified by a -L
option contains a file named libf.a
, the results are
unspecified.
-O
optlevel
Specify the level of code optimization. If the optlevel
option-argument is the digit '0'
, all special code
optimizations shall be disabled. If it is the digit
'1'
, the nature of the optimization is unspecified. If
the -O
option is omitted, the nature of the system's
default optimization is unspecified. It is unspecified
whether code generated in the presence of the -O
0
option is the same as that generated when -O
is
omitted. Other optlevel values may be supported.
-w
Suppress warnings.
Multiple instances of -L
options can be specified.