Add path to list of directory paths to search for libraries.
Adds path to the front of the list of object–library search directories. A space between -L and path is optional. This option is passed to the linker. See also –lx.
While building the executable file, ld(1) searches path for archive libraries (.a files) and shared libraries (.so files). ld searches path before searching the default directories. (See the Fortran Programming Guide chapter “Libraries” for information on library search order.) For the relative order between LD_LIBRARY_PATH and -Lpath, see ld(1).
Example: Use -Lpath to specify library search directories:
demo% f95 -L./dir1 -L./dir2 any.f