Index: ostatcomp.sh
===================================================================
--- ostatcomp.sh	(revision 523)
+++ ostatcomp.sh	(revision 524)
@@ -8,13 +8,13 @@
 
 ulimit -c 0
 rm test
-gcc -g $1 -Wall -o test \
+gcc -g $1 -Wall -o test -static-libgcc \
 -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-Bstatic -L/usr/X11R6/lib/ \
--lm -lXi -lstdc++ -ljpeg \
+-lm -lXi -ljpeg \
 -Iraydium/ode/include/ raydium/ode/ode/src/libode.a \
 -lGLEW -lXmu -lXinerama -lopenal -lalut -lvorbisfile -lvorbis -logg \
 -Iraydium/php/ -Iraydium/php/main/ -Iraydium/php/Zend -Iraydium/php/TSRM raydium/php/libs/libphp5.a \
--lcrypt -lssl -lcrypto -lidn -lresolv -lz -lcurl -lxml2 -lssl -lcrypto -lidn \
+-lcrypt -lssl -lcrypto -lidn -lresolv -lz -lcurl -lxml2 -lssl -lcrypto -lidn -lstdc++ -lm -lX11 -lXext \
 -Wl,-Bdynamic -lGL -lGLU -lasound -lpthread
 # Strange thing above : -lssl -lcrypto must appear twice arround -lcurl ...
 sync