MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0016078 | CMake | CMake | public | 2016-04-24 04:28 | 2016-06-10 14:21 |
| Reporter | Thomas Nilsson | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | PC | OS | Windows | OS Version | 10 |
| Product Version | CMake 3.3.2 | ||||
| Target Version | CMake 3.6 | Fixed in Version | CMake 3.6 | ||
| Summary | 0016078: CMake on Cygwin with clang not creating expected dll.a | ||||
| Description | I'm building a shared library and an application using that lib on Cygwin. With GCC CMake creates a .dll.a to use when linking. Switching to clang I get [ 34%] Built target xyz_shared make[2]: *** No rule to make target 'src/libxyz_shared.dll.a', needed by 'xyz.exe'. Stop. | ||||
| Steps To Reproduce | On Cygwin, use the attached CMakeLists.txt and see it produce 'cygxyz_shared.dll' and 'libxyz_shared.dll.a'. Clear the build directory and do $ CC=clang cmake ..; make and it will not create 'libxyz_shared.dll.a'. | ||||
| Additional Information | As described in this Stackoverflow question (http://stackoverflow.com/questions/36294199 [^]) the culprit seems to be the lack of the flags '-Wl,--enable-auto-import' when using clang. | ||||
| Tags | Clang, cygwin | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5679/CMakeLists.txt | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2016-04-24 04:28 | Thomas Nilsson | New Issue | |||
| 2016-04-24 04:28 | Thomas Nilsson | File Added: CMakeLists.txt | |||
| 2016-04-24 16:56 | Thomas Nilsson | Tag Attached: Clang | |||
| 2016-04-24 16:56 | Thomas Nilsson | Tag Attached: cygwin | |||
| 2016-04-25 09:03 | Brad King | Note Added: 0040925 | |||
| 2016-04-25 09:03 | Brad King | Assigned To | => Brad King | ||
| 2016-04-25 09:03 | Brad King | Status | new => resolved | ||
| 2016-04-25 09:03 | Brad King | Resolution | open => fixed | ||
| 2016-04-25 09:03 | Brad King | Fixed in Version | => CMake 3.6 | ||
| 2016-04-25 09:03 | Brad King | Target Version | => CMake 3.6 | ||
| 2016-06-10 14:21 | Kitware Robot | Note Added: 0041184 | |||
| 2016-06-10 14:21 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||