-l

Category

Linking

@PROCESS

None.

Purpose

Searches for the specified library file. For static and dynamic linking, the linker searches for libkey.a. For runtime linking with the -brtl option, the linker searches for libkey.so, and then libkey.a if libkey.so is not found.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -l--key----------------------------------------------------><

Defaults

The compiler default is to search only for some of the compiler runtime libraries. The default configuration file specifies the default library names to search for with the -l compiler option, and the default search path for libraries with the -L compiler option.

Parameters

key
The name of the library minus the lib prefix.

Rules

This option is passed directly to the ld command and is not processed by XL Fortran at all.

Related information