-lgcc is a command line argument to the linker and it means the linker should link the library named gcc to the actual target. The filename of that lib may change depending on other flags, so it can be libgcc.so, libgcc_s.so or ... .
see
http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html.
_____________________________________
If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post.
Happy with solution ... mark as
SOLVED
(located in the "thread tools")