summaryrefslogtreecommitdiffstats
path: root/doxygen.config
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-11-09 16:35:20 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-10 19:46:22 (GMT)
commit4db31095e5f4ce410c013e0b92bc5d1baee03934 (patch)
tree8ec4f16583bc150b3f933e3b48cff004ab5d536e /doxygen.config
parent06c3b7a8224b9864f1771de62926c1d1fb3476cc (diff)
downloadCMake-4db31095e5f4ce410c013e0b92bc5d1baee03934.zip
CMake-4db31095e5f4ce410c013e0b92bc5d1baee03934.tar.gz
CMake-4db31095e5f4ce410c013e0b92bc5d1baee03934.tar.bz2
Fix link line order when shared libraries are de-duplicated
Since commit v3.1.0-rc1~227^2~1 (De-duplicate shared library targets in generated link lines, 2014-07-30) we de-duplicate shared library targets on the link line. However, some toolchains will fail linking if an executable is linking to a shared library that is not used directly and a static library that depends on the shared one. The linker may not keep the reference to the shared library the first time and then the symbols needed by the static library may not be found. Fix this by reversing the direction of the for loop that removes the duplicate shared libraries, in order to ensure that the last occurrence of the library is left instead of the first one. Extend Tests/Dependency with a case covering this behavior. Create an executable that links to a shared library and a static library but only needs the shared library as a dependency of the static library. Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'doxygen.config')
0 files changed, 0 insertions, 0 deletions