Since no one has yet come up with an answer, I will try. Unfortunately, I do not know what the Code :: Blocks IDE is, so my answer will be only partial.
1 How to create statically linked executable with GCC
IDE, GCC ( ) . , ", " main.cpp ( , ). :
main.cpp main.o ( ):
$ g++ -c -Wall main.cpp
-c GCC ( ). -Wall . , .; -)
main.o ( ), main:
$ g++ -o main main.o -static
-o main GCC a.out ( "" ).
"", .
, :
$ g++ -Wall -o main main.cpp -static
IDE /.
2
:
, , , , .
, . , CGI chroot() -.
, . ( , , , .)
, .
(, LAPACK) , , LD_LIBRARY_PATH. , , . , ?
:
, . , , , .
, , . , .
. , (-, ABI) , , . , .
, , OpenSSL. Heartbleed, OpenSSL , , . , OpenSSL. , , , , , " " , .
" ". , torsocks script ( ) ( LD_PRELOAD ) , Tor. , . ( , , .) "" malloc .. .
, , . : , , .
Alf (. ), GCC ++ , . GCC:
-static-libstdc++
g++ ++, libstd++. libstd++ , -static , libstd++. . libstd++, , . -static-libstdc++ g++ libstd++ , .