I'm planning on migrating a PHP web application to a C++ CGI.
As you may guess, my web host only provides a few shared libraries (libc, libstdc++, ...) so I need to be able to specify which libraries are linked statically, and which ones are linked dynamically.
I really can't afford a ~900k binary (compiled with -static, then stripped) for a simple "Hello world" CGI...
Being kinda new to Linux and g++, I'm having trouble configuring the compiler to my needs.
Any pointers (no pun intended) would be appreciated.