Re: libgcc_s.dylib dependency
Re: libgcc_s.dylib dependency
- Subject: Re: libgcc_s.dylib dependency
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 22 Sep 2005 21:26:17 -0600
On Sep 22, 2005, at 7:07 PM, E. Wing wrote:
So we removed the C++ code from our code base, and the libstdc++
dependency disappeared, but I still see libgcc_s.1.dylib.
[...]
So in addition to knowing what this library does,
libgcc_s is the shared version of libgcc. libgcc is linked into every
non-static binary built by GCC, and includes various internal
functions. In GCC 4.0, G++ always links against libgcc_s. As I
understand things, the C++ throw/catch exception handling mechanism
is implemented in libgcc, and linking to the shared version allows
exceptions to be thrown & caught between different shared objects.
I would also like to
know if there is a way to remove the dependency using the the newer
versions of Xcode and gcc 4.0 (static linking?).
In the build log, check to see how Xcode is launching GCC to link the
binary. If it's using G++ and not GCC to link the binary, or if the "-
shared-libgcc" option is being used, then the binary will be linked
against libgcc_s.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden