libgcc_s.so.1 dependency

From: Andrei Voropaev (avorop_at_mail.ru)
Date: 06/24/05


Date: 24 Jun 2005 07:40:27 GMT

Hello!

It happened to me already couple times, that binary file created with
gcc is linked against libgcc_s.so.1. The worst thing is that it happens
"seemingly" sporadically. I would generate the binary, copy it for usage
on another machine, boom - can not start it because libgcc_s.so.1 is
missing. I copy the sources to that machine and compile it there - the
dependency is gone. At least ldd does not report it anymore. Now 1 month
later I compile exactly the same sources on the first machine, and I
don't see this dependency!

Anyone could explain to me what is this libgcc_s.so.1 and why the
application would be linked against it? Normally ldd for this
application reports only libc.so.6 and /lib/ld-linux.so.2

Thank you.

-- 
Minds, like parachutes, function best when open