Unable to Change Default Linker in CMake 3.5.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Unable to Change Default Linker in CMake 3.5.1

Samuel Goodrick

I am trying to change my linker to ld.gold so that I can build LLVM and CLANG faster. I have changed my environment variable with:
export LD=ld.gold

and I have changed CMAKE_LINKER in ccmake to /usr/bin/ld.gold. However, when I generate the files, my linker is detected as GNU ld. Running top during compilation confirms that ld is running rather than gold.

I'm on Ubuntu 16.04, but I have had the same problem on Arch Linux.

Thank You.


Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe: