MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012954 | CMake | CMake | public | 2012-02-10 19:44 | 2012-09-03 16:02 |
Reporter | Eric Anderson | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | i386 | OS | OpenBSD | OS Version | 5.0 |
Product Version | CMake 2.8.4 | ||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | ||
Summary | 0012954: cmake does not properly detect shared libraries on OpenBSD 5.0 | ||||
Description | cmake does not properly detect shared libraries on OpenBSD 5.0. Shared libraries on that platform always end in .so.#.# When detecting shared libraries, cmake only considers files that end in .so Therefore in cmComputeLinkInformation::AddLibraryRuntimeInfo, libraries will not be considered for adding rpath information. Simplest fix is to put: LIST(APPEND CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES .so.[0-9]+.[0-9]+) Into some module, e.g. OpenBSD.cmake; there may be a better fix. I also tried CMAKE_SHARED_LIBRARY_SUFFIX, but that caused shared libraries to not build. | ||||
Steps To Reproduce | Put a required shared library in a non-standard path. Setup cmake to include the rpath in the build tree: SET(CMAKE_SKIP_BUILD_RPATH FALSE) SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) Add a target that depends on that non-standard path Build the target Run ldd on the built executable (or try to execute it), it will fail to link to the special path. Note that if you set CMAKE_INSTALL_RPATH to include the non-standard path, the installed binary will work fine. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | 16b1a6e4+0001-Recognize-OpenBSD-versioned-.so-names-12954.patch (2,069) 2012-02-13 10:37 https://public.kitware.com/Bug/file/4218/16b1a6e4%2B0001-Recognize-OpenBSD-versioned-.so-names-12954.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-02-10 19:44 | Eric Anderson | New Issue | |||
2012-02-13 10:37 | Brad King | Assigned To | => Brad King | ||
2012-02-13 10:37 | Brad King | Status | new => assigned | ||
2012-02-13 10:37 | Brad King | File Added: 16b1a6e4+0001-Recognize-OpenBSD-versioned-.so-names-12954.patch | |||
2012-02-13 10:37 | Brad King | Note Added: 0028573 | |||
2012-02-13 19:00 | Eric Anderson | Note Added: 0028581 | |||
2012-02-14 10:10 | Brad King | Note Added: 0028584 | |||
2012-02-14 10:10 | Brad King | Status | assigned => resolved | ||
2012-02-14 10:10 | Brad King | Fixed in Version | => CMake 2.8.8 | ||
2012-02-14 10:10 | Brad King | Resolution | open => fixed | ||
2012-04-19 15:50 | David Cole | Target Version | => CMake 2.8.8 | ||
2012-09-03 16:02 | David Cole | Note Added: 0030881 | |||
2012-09-03 16:02 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|