Invokes the libtool command to generate dynamic libraries.

Architecture Restrictions

Not available when targeting Intel® Xeon Phi™ products

Syntax

Linux:

None

macOS:

-dynamiclib

Windows:

None

Arguments

None

Default

OFF

The compiler produces an executable.

Description

This option invokes the libtool command to generate dynamic libraries.

When passed this option, the compiler uses the libtool command to produce a dynamic library instead of an executable when linking.

To build static libraries, you should specify option -staticlib or libtool -static <objects>.

IDE Equivalent

None

Alternate Options

None

See Also

有关编译器优化的更完整信息,请参阅优化通知