View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001105CMakepublic2004-08-19 11:092006-10-05 13:53
ReporterBrad King 
Assigned ToBrad King 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001105: Setup UNIX linkers to always find correct library
DescriptionWhen a library is specified as a full path in a cache entry then CMake should setup the build system to make sure that exact library is found. Currently the library path "/path/to/libfoo.a" is split into the options "-L/path/to -lfoo" when passed to the linker. If an earlier-listed -L path has a different foo library or there are two foo libraries in the same directory then the linker might choose the wrong one.

We need to investigate what happens if the full path to the library is given to the linker. Alternatively, a special directory could be created in the build tree that is listed first in the -L paths. This directory would contain symbolic links to the correct locations for all the libraries to be linked. Then the linker would hopefully always find the correct library.

We would probably have to have one such special directory per library target. Perhaps it could be combined with the directory that contains all the .o files for that target if we ever implement the one-object-per-source-per-target functionality.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0005261)
Brad King (manager)
2006-10-05 13:53

cmOrderLinkDirectories and the static/shared link-type code handles this as well as possible.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team