HP Fortran Programmer Guide (766160-001, March 2014)
Table 24 HP Fortran environment variables (continued)
DescriptionEnvironment variable
Specifies a directory for temporary files; used in place of
the default directory /var/tmp.
TMPDIR
Controls tty buffering. To enable tty buffering, set
TTYUNBUFto 0; to disable tty buffering, set it to a nonzero
value.
TTYUNBUF
The following sections describe how to use the HP_F90_OPTS, LPATH, and
MP_NUMBER_OF_THREADSenvironment variables. See theenviron (5) man page for information
about system-level environment variables.
F90ROOT environment variable
The F90ROOT environment variable causes f90 driver to invoke all subprocesses from an alternate
F90 root directory, rather than from their default directory. The default F90 root directory is
/opt/fortran90/. For example,
• Install F90 compiler in an alternate root using '-r' option in swinstall or copy /opt/fortran90/
directory to an alternate directory.
$ export F90ROOT=directory (ksh/sh notation)
$ setenv F90ROOT directory (csh notation)
• Invoke f90 <F90ROOT>/opt/fortran90/bin/f90.
• f90com32/f90com64 is invoked from <F90ROOT>/opt/fortran90/lbin/ directory.
Only files in /opt/fortran90 are affected by F90ROOT environment variable. Regardless of the
HP Fortran driver you use, the compiler still uses the libraries, linker, and other files located in
/usr/lib and /usr/ccs.
ST_F90COM[64] environment variable
The ST_F90COM / ST_F90COM64 environment variables specify the f90com32 / f90com64
path on a non-standard path.
$ export ST_F90COM=/tmp/f90com32
$ export ST_F90COM64=/tmp/f90com64
$ setenv ST_F90COM /tmp/f90com32
$ setenv ST_F90COM64 /tmp/f90com64
HP_F90OPTS environment variable
The HP_F90OPTSenvironment variable is read by the f90driver for options to insert in the command
line. This variable is useful when you want the same options and arguments each time you invoke
the f90command. For example, if HP_F90OPTSis set to the -voption, the following command
line:
$ f90 +list hello.f90
is equivalent to:
$ f90 -v +list hello.f90
The syntax of the HP_F90OPTSvariable allows the bar (|) character to be used to specify that
options appearing before |are to be recognized before any options on the command line and
that options appearing after |are to be recognized after any options on the command line. For
example, the commands:
64 Compiling and linking