On Wednesday, May 27, 2015 01:01 PM, Tobias Koch wrote:
Is it correct that libc++ depends on libgcc_s?
IIRC ldd will also print indirect library dependencies. It is quite possible,
that you have an indirect dependency on libgcc_s via your host libc. To
see the direct dependencies only, try
readelf -a mylib.so | grep NEEDED
readelf -a ~/development/llvm/trunk/build/release/lib/libc++.so | grep
NEEDED
0x0000000000000001 (NEEDED) Shared library: [libc++abi.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [librt.so.1]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
readelf -a /lib/x86_64-linux-gnu/libc.so.6 | grep NEEDED
0x0000000000000001 (NEEDED) Shared library:
[ld-linux-x86-64.so.2]
Oh well, never mind.
Thanks,
Ben
_______________________________________________
cfe-users mailing list
cfe-users@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users