[CMake] FW: Create shared library

Tyler Roscoe tyler at cryptio.net
Mon Aug 3 13:08:30 EDT 2009


On Mon, Aug 03, 2009 at 10:13:08PM +0800, zhongli.xu at nomura.com wrote:
> I have 'ldd libMy.so':
> 
> lib3rdParty.so => /absolute/path/lib3rdParty.so (0x0056c000)
> 
> Is it possible to remove the info in red by setting some flags in gcc
> option?

Take a look at the various RPATH variables/properties:

http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:BUILD_WITH_INSTALL_RPATH
http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_SKIP_RPATH
http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:SKIP_BUILD_RPATH

tyler


More information about the CMake mailing list