summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-07-30 14:23:41 (GMT)
committerBrad King <brad.king@kitware.com>2008-07-30 14:23:41 (GMT)
commit08221c2a49ee450cd16a00849d0fb14b08c1b17f (patch)
tree74eada96792f639ca06bf25836d49fa0eb1ea757 /Source/cmComputeLinkDepends.h
parent96c9e7de7e1e4ef8497ec26afe507904e76ce63c (diff)
downloadCMake-08221c2a49ee450cd16a00849d0fb14b08c1b17f.zip
CMake-08221c2a49ee450cd16a00849d0fb14b08c1b17f.tar.gz
CMake-08221c2a49ee450cd16a00849d0fb14b08c1b17f.tar.bz2
BUG: Preserve all non-targets on user link lines
In CMake 2.4 the generated link line for a target always preserved the originally specified libraries in their original order. Dependencies were satisfied by inserting extra libraries into the line, though it had some bugs. In CMake 2.6.0 we preserved only the items on the link line that are not known to be shared libraries. This reduced excess libraries on the link line. However, since we link to system libraries (such as /usr/lib/libm.so) by asking the linker to search (-lm), some linkers secretly replace the library with a static library in another implicit search directory (developers can override this by using an imported target to force linking by full path). When this happens the order still matters. To avoid this and other potential subtle issues this commit restores preservation of all non-target items and static library targets. This will create cases of unnecessary, duplicate shared libraries on the link line if the user specifies them, but at least it will work. In the future we can attempt a more advanced analysis to safely remove duplicate shared libraries from the link line.
Diffstat (limited to 'Source/cmComputeLinkDepends.h')
-rw-r--r--Source/cmComputeLinkDepends.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/cmComputeLinkDepends.h b/Source/cmComputeLinkDepends.h
index 1b2809b..3e42580 100644
--- a/Source/cmComputeLinkDepends.h
+++ b/Source/cmComputeLinkDepends.h
@@ -58,10 +58,6 @@ public:
std::set<cmTarget*> const& GetOldWrongConfigItems() const
{ return this->OldWrongConfigItems; }
- /** Set a regular expression that matches strings ending in a shared
- library extension. */
- void SetSharedRegex(std::string const& regex);
-
private:
// Context information.
@@ -141,7 +137,6 @@ private:
// Preservation of original link line.
std::vector<int> OriginalEntries;
void PreserveOriginalEntries();
- std::string SharedRegexString;
// Compatibility help.
bool OldLinkDirMode;