-brtl
Category
@PROCESS
None.
Purpose
Enables runtime linking for the output file. When you use -brtl with the -l option, the linker searches for a library with the suffix of .so, as well as of .a. Preference is given to .so over .a when libraries with the same name are present in the same directory.
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
- -bdynamic, -bshared, and -bstatic
- -l
- Linking a library to an application
- For more information on these options, see AIX® General Programming Concepts: Writing and Debugging Programs.