| View Issue Details [ Jump to Notes ] | [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0009873 | CMake | CMake | public | 2009-11-09 15:47 | 2010-09-09 23:54 |
|
| Reporter | Pino Toscano | |
| Assigned To | Bill Hoffman | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | duplicate | |
| Platform | | OS | | OS Version | |
| Product Version | | |
| Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | |
|
| Summary | 0009873: incomplete platform file for GNU/Hurd |
| Description | Currently (both in cmake 2.6.x and cmake 2.8 as of its latest rc5), the GNU.cmake platform file used for GNU/Hurd systems is not complete.
In particular, it needs the rpath-link flag definition, needed for properly compiling in all the cmake setups; in particular, its miss causes the failure of the ExportImport unit test, which instead works correctly with the proposed patch.
Also, the patch provides some more definitions, a bit close to the Linux oones (given the base toolchain is quite close anyway, GNU-based).
|
| Additional Information | The patch can be applied to both 2.6.x and 2.8.x versions. |
| Tags | No tags attached. |
|
| Attached Files | hurd.diff [^] (622 bytes) 2009-11-09 15:47 [Show Content] [Hide Content]--- a/Modules/Platform/GNU.cmake
+++ b/Modules/Platform/GNU.cmake
@@ -5,6 +5,11 @@
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
+SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
+SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-soname,")
+SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
+SET(CMAKE_EXE_EXPORTS_CXX_FLAG "-Wl,--export-dynamic")
+
INCLUDE(Platform/UnixPaths)
|
|