-brtl

Category

Linking

@PROCESS

None.

Purpose

Controls runtime linking for the output file.

Syntax

Read syntax diagramSkip visual syntax diagram
   .- -bnortl-.   
>>-+- -brtl---+------------------------------------------------><

Defaults

-bnortl

Usage

When used in conjunction with either -bdynamic or -bshared, the search for libraries that you specified with the -l option is satisfied by the suffix .so or .a.

For each directory searched, a file with the suffix .so is looked for. If it is not found, a file with the suffix .a is looked for. If neither file is found, the search continues with the next directory.

Table 1 shows how these options combine to affect the file suffix being searched for.

Rules

This option is passed directly to the ld command and is not processed by XL Fortran at all. Only the last specified option will be used.

This option has a global effect; regardless of where it appears on the command line, it affects the entire command.

Examples

xlf95 -brtl f.f -lmylib
xlf95_r -bnortl f.f -bdynamic -llib1 -bstatic -llib2

Note that if you add -brtl to the end of the last example, it will override the earlier occurrence of -bnortl.

Related information