On 06/15/2011 11:43 PM, Dominik Szczerba wrote: >> This behavior is really strange and I tested it in the last 10 minutes. >> CMake says: >> boost libs: /usr/lib/libboost_system-mt.so >> >> Compiling and linking with verbose reveals the link command: >> /usr/bin/c++ CMakeFiles/test.dir/test.cpp.o -o test -rdynamic >> -lboost_system-mt >> >> But a ldd on test gives: >> andreas[515:3]:ldd test >> linux-vdso.so.1 => (0x00007fff2fb4a000) >> libboost_system.so.1.46.1 => /usr/lib/libboost_system.so.1.46.1 >> (0x00007f525e8c7000) >> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f525e5bd000) >> libm.so.6 => /lib/libm.so.6 (0x00007f525e33a000) >> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f525e124000) >> libc.so.6 => /lib/libc.so.6 (0x00007f525ddc3000) >> librt.so.1 => /lib/librt.so.1 (0x00007f525dbba000) >> libpthread.so.0 => /lib/libpthread.so.0 (0x00007f525d99e000) >> /lib64/ld-linux-x86-64.so.2 (0x00007f525eaf5000) >> >> I don't install, only build the executable. > > Installation does not change this picture for me.
This phenomenon is not strange but a very important mechanism on ELF platforms, refer to [1,2,3], keyword "soname", for more information. Regards, Michael > [1] > http://sourceware.org/binutils/docs/ld/Options.html#index-g_t_002dsoname_003d_0040var_007bname_007d-52 > [2] > http://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN46 > [3] http://www.mail-archive.com/cmake@cmake.org/msg33509.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake