I am using Clang 3.8 on CentOS 7.4 to compile a C++ app using third party libraries and their (complicated) makefiles. When including their makefile and running my own I am getting the following error during linkage:
clang-3.8: error: invalid linker name in argument '-fuse-ld=gold-2.25'
I had a look online, some suggestions were to change this to -fuse-ld=gold
, but still, that didn't work.
Could someone explain what this problem is and how I can fix it?
UPDATE
Also tried -fuse-ld=lld
but I still get an error:
clang-3.8: error: invalid linker name in argument '-fuse-ld=lld'
Your clang build does not support linking with gold.