24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

-bdynamic, -bshared, and -bstatic Options<br />

Syntax<br />

-bdynamic | -bshared | -bstatic<br />

These options are toggles that are used to control the processing of -l options and<br />

the way that shared objects are processed.<br />

The options -bdynamic and -bshared are synonymous.<br />

When -bstatic is in effect, shared objects are statically linked into the output file.<br />

When -bdynamic is in effect, shared objects are linked dynamically.<br />

When -brtl is used in conjunction with either -bdynamic or -bshared, the search<br />

<strong>for</strong> libraries specified with the -l option is satisfied by the suffix .so or .a. For each<br />

directory searched, a file with the suffix .so is looked <strong>for</strong>. If it is not found, a file<br />

with the suffix .a is looked <strong>for</strong>. If neither file is found, the search continues with<br />

the next directory.<br />

Rules<br />

These options are passed directly to the ld command and are not processed by <strong>XL</strong><br />

<strong>Fortran</strong> at all.<br />

These options are position-significant. They affect all files that are specified after<br />

the option on the command-line.<br />

Table 13 summarizes how these options interact with -brtl and -bnortl to affect the<br />

file suffix that is being searched.<br />

Table 13. Interaction of New Linker Options<br />

Global<br />

Influence<br />

-brtl<br />

-bnortl<br />

(default)<br />

Position-significant<br />

-bdynamic<br />

-bshared (default)<br />

.so<br />

.a<br />

-bstatic<br />

.a<br />

.a .a<br />

<strong>XL</strong> <strong>Fortran</strong> Compiler-Option Reference 95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!