http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47558
--- Comment #7 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-02-01
04:01:52 UTC ---
Also note that on darwin10...
lrwxr-xr-x 1 root wheel 17 Nov 4 19:37 libgcc_s.1.dylib ->
libSystem.B.dylib
lrwxr-xr-x 1 root wheel 19 Nov 4 20:32 libgcc_s.10.4.dylib ->
libgcc_s.10.5.dylib
-rwxr-xr-x 1 root wheel 40668 Apr 23 2010 libgcc_s.10.5.dylib
So that when we only have the linkage...
/sw/lib/gcc4.6/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.10)
the linker is exposed to a libgcc_s.1.dylib with unprefixed symbols first
whereas with...
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
625.0.0)
/sw/lib/gcc4.6/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.10)
It is actually being linked against libSystem first (which contains the
prefixed symbols) but through a symlink.