| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0015466 | CMake | CMake | public | 2015-03-21 07:33 | 2015-11-02 09:13 | ||||
| Reporter | Benjamin Schindler | ||||||||
| Assigned To | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | amd64 | OS | gentoo linux | OS Version | 3.17 | ||||
| Product Version | CMake 3.1 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0015466: ninja does not use requested linker | ||||||||
| Description | In a project, I set CMAKE_LINKER to /usr/bin/ld.gold. Yet, when I build my project, the link step uses /usr/bin/c++ to link the project. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0038276) Brad King (manager) 2015-03-23 09:44 |
This is behaving as intended. The CMAKE_LINKER variable is an implementation detail and is not documented publicly. We always drive linking through the compiler front-end so that it can add whatever runtime libraries the language needs. If you want to change what linker the compiler invokes underneath then you need to pass an appropriate flag to that compiler. I haven't tested this but you could try editing your CMAKE_EXE_LINKER_FLAGS to add "-fuse-ld=gold". |
|
(0039742) Robert Maynard (manager) 2015-11-02 09:13 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2015-03-21 07:33 | Benjamin Schindler | New Issue | |
| 2015-03-23 09:44 | Brad King | Note Added: 0038276 | |
| 2015-03-23 09:44 | Brad King | Status | new => resolved |
| 2015-03-23 09:44 | Brad King | Resolution | open => no change required |
| 2015-11-02 09:13 | Robert Maynard | Note Added: 0039742 | |
| 2015-11-02 09:13 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |