Visible to Intel only — GUID: GUID-0A80EA2F-5501-4678-B64B-7417BDDB5EC5
Visible to Intel only — GUID: GUID-0A80EA2F-5501-4678-B64B-7417BDDB5EC5
Use Intel Shared Libraries
This topic applies to Linux and macOS.
By default, the Intel® C++ Compiler Classic links Intel® C++ libraries dynamically. The GNU/Linux/macOS system libraries are also linked dynamically.
Options for Shared Libraries (Linux)
Option |
Description |
---|---|
-shared-intel |
Use the shared-intel option to link Intel®-provided libraries dynamically. This has the advantage of reducing the size of the application binary, but it also requires the libraries to be on the application's target system. |
-shared |
The shared option instructs the compiler to build a Dynamic Shared Object (DSO) instead of an executable. For more details, refer to the ld man page documentation. |
-fpic |
Use the fpic option when building shared libraries. It is required for the compilation of each object file included in the shared library. |
Options for Shared Libraries (macOS)
Option |
Description |
---|---|
-dynamiclib |
Use the dynamiclib option to invoke the libtool command to generate dynamic libraries. |
-fpic |
Use the fpic option when building shared libraries. It is required for the compilation of each object file included in the shared library. |