пятница, 17 сентября 2010 г.

http://www.formortals.com/build-qt-static-small-microsoft-intel-gcc-compiler/

Intel® C++ Compiler for Linux* - Statically linking Intel provided libraries into your application

Submit New Article

Published On : September 18, 2008 9:00 PM PDT



By default, some Intel provided libraries are linked dynamically into your application, such as libcxaguard.so. This may not be desired, if you plan to run your application on a system that does not have the Intel® C++ Compiler installed on it or you do not want to redistribute the Intel provided libraries with your application.

Use one of the following options to resolve this issue:

  • Link all libraries statically using the -static option. This may not be desired since non-Intel libraries are also linked statically, which can cause a significant increase in the size of the executable.

    OR

  • Link the Intel provided libraries using the -static-intel option. For the 9.1 compiler, use the option -i-static. All other libraries are linked using the default behavior (i.e., system libraries are dynamically linked).
Linking/Linker
--------------

/link specify that all options following '/link' are for the linker
/F set the stack reserve amount specified to the linker
/LD[d] produce a DLL instead of an EXE ('d' = debug version)
/MD[d] use dynamically-loaded, multithread C runtime
/MT[d] use statically-linked, multithread C runtime (DEFAULT with
Microsoft Visual Studio 2005 and later)
/ML[d] use statically-linked, single thread C runtime (only valid in
Microsoft Visual Studio 2003 environment)
/Zl omit library names from object file