View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001104CMakepublic2004-08-19 09:202012-03-30 11:48
ReporterBrad King 
Assigned ToBill Hoffman 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001104: Auto-relink support when source is removed
DescriptionWhen a source file is removed from a library there is no dependency that tells the library to relink without the extra object file. We can fix this by generating an extra source file for the library that contains some unreferenced dummy symbol. The source file would also contain a comment containing the list of other source files being linked into the library. When this list changes the source file would be modified and the library would relink to include the updated object file. As a side effect the removed source files would not be included in the library (unless there is some incremental linking problem in which case we'll need more flags to the linker to avoid it).

If we do not want to add this as an always-on feature we could have a target property for libraries called something like AUTO_RELINK that enables this feature.
TagsNo tags attached.
Attached Files


Alex Neundorf (developer)
2006-08-27 10:40

I tried and cannot reproduce it with current cmake. AFAIK the libs depend on the makefiles, so it will be linked again.
Ok to close it ?
Brad King (manager)
2006-08-29 09:12

You're correct, this was fixed by cm*MakefileGenerator3.

 Issue History
Date Modified Username Field Change
2012-03-30 11:48 Eric NOULARD Relationship added duplicate of 0013072
2012-03-30 13:05 Brad King Relationship deleted 0013072

Copyright © 2000 - 2018 MantisBT Team