-qmkshrobj

Description

Creates a shared object from generated object files.

Syntax

Read syntax diagramSkip visual syntax diagram>>- -q--mkshrobj-----------------------------------------------><
 

Notes

This option, together with the related options described below is used to create a shared object. The advantage of using this option is that the compiler automatically includes and compiles template instantiations in the tempinc directory.

Specifying -qmkshrobj implies -qpic.

Also, the following related options can be used with the -qmkshrobj compiler option:

-o shared_file Is the name of the file that will hold the shared file information. The default is a.out.
-e name Sets the entry name for the shared executable to name.  The default is -enoentry.

If you use -qmkshrobj to create a shared library, the compiler and linkage editor are called with the appropriate options to build a shared object.

Example

To construct the shared library big_lib.o from three smaller object files, type:

xlc -qmkshrobj -o big_lib.o lib_a.o lib_b.o lib_c.o

Related information