libgcc_s.dylib dependency
libgcc_s.dylib dependency
- Subject: libgcc_s.dylib dependency
- From: "E. Wing" <email@hidden>
- Date: Thu, 22 Sep 2005 18:07:15 -0700
I'm trying to understand and purify a code base (a dynamic library) to
give us as much flexibility as possible as we look to universal
binaries and gcc 4. There was a small bit of C++ code that snuck into
the code base that pulled in libstdc++ as a dependency under gcc 4.0.
libgcc_s.dylib also seemed to be linked in. I thought it might be
another C++ related thing as the first thing listed in using nm was
__initialize_Cplusplus. My understanding was that libgcc_s was also
only introduced to Panther in 10.3.9 with libstdc++, and not in
earlier versions of Panther.
So we removed the C++ code from our code base, and the libstdc++
dependency disappeared, but I still see libgcc_s.1.dylib.
Further testing on trivial test code to build a "Hello world" type
library, I discovered that the gcc 4.0 that came with Xcode 2.0 does
not link in libgcc_s, but the gcc 4.0 that comes with Xcode 2.1 does
link it.
So in addition to knowing what this library does, 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?). And why was this
behavior changed in versions of gcc with the same number?
Thanks,
Eric
_______________________________________________
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