dynamiclib

Invokes the libtool command to generate dynamic libraries.

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture

Syntax

Linux: None
Mac OS X: -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, GCC on Mac OS X uses the libtool command to produce a dynamic library instead of an executable when linking.

To build static libraries, you should use libtool -static <objects>.

Alternate Options

Linux: -shared
Mac OS X: None
Windows: None