Fortran User's Guide

Library Options

For the following library linking options, the most useful are listed first.

Table 3-6 Library Options 

Action 

Option 

Details 

Bind as dynamic or static next library listed on command. 

-Bx

" -B{static|dynamic}"

Allow or disallow dynamic libraries for executable. 

-dx

"-d{y|n}"

Build a dynamic shared library. 

-G

" -G"

Search for libraries in this directory first. 

-Ldir

"-Ldir"

Link with library libx.

-lx

"-lx"

Link with the SunWorkShop Performance Library 

 -xlic_lib=sunperf

" -xlic_lib=libs"

Multithread safe libraries, low level threads.

-mt

"-mt"

No automatic libraries. 

-nolib

"-nolib"

No inline templates. 

-nolibmil

"-nolibmil"

No run path in executable. 

-norunpath

"-norunpath"

Library--do not make library if relocations remain. 

-ztext

"-ztext"