-L

Category

Linking

@PROCESS

None.

Purpose

At link time, searches the directory path for library files specified by the -l option.

Syntax

Read syntax diagramSkip visual syntax diagram
Option:

>>- -L--Directory----------------------------------------------><

Defaults

Not applicable.

Usage

Adds Directory to the list of search directories that are used for finding libraries designated by the -l flag (lowercase letter L). If you use libraries other than the default ones specified in /opt/ibm/xlf/15.1.0/lib or /opt/ibm/xlf/15.1.0/lib64, you can specify one or more -L options that point to the locations of the other libraries.

Rules

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

Related information