View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015466CMakeCMakepublic2015-03-21 07:332015-11-02 09:13
ReporterBenjamin Schindler 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
Platformamd64OSgentoo linuxOS Version3.17
Product VersionCMake 3.1 
Target VersionFixed in Version 
Summary0015466: ninja does not use requested linker
DescriptionIn 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.
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team