Sometime today, Pankaj Jangid wrote:
How to statically link libraries in C/C++. Which g++ option is required.
RTFM. The option name is `static', and you can negate it by saying `nostatic', so that way you can selectively link some libs static and others dynamic. Default is `nostatic'.
Manish