1) Build clang with GCC-4.9.2, when compling other application s with clang/clang++, the default linker is ld, can I replace it with other linker tool, if we can, how to do it?
I.E. can we use collect2 instead?
2) how to specify the path, if we do not use the default vertion GCC?
Best Regards!
Eric Lew
1) Build clang with GCC-4.9.2, when compling other application s with clang/clang++, the default linker is ld, can I replace it with other linker tool, if we can, how to do it?
I.E. can we use collect2 instead?
2) how to specify the path, if we do not use the default vertion GCC?
Best Regards!
Eric Lew
_______________________________________________
cfe-dev mailing list
cfe...@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Didn’t we upstream the support for -fuse-ld=foo, which would use ld.foo in your default linker search path, so if you install gold as /usr/bin/ld.gold (as, I believe, is the default), it will work with -fuse-ld=gold?
David
On Sat, Jun 13, 2015 at 11:05 PM, David Chisnall
<David.C...@cl.cam.ac.uk> wrote:
>
> Didn’t we upstream the support for -fuse-ld=foo, which would use ld.foo in your default linker search path, so if you install gold as /usr/bin/ld.gold (as, I believe, is the default), it will work with -fuse-ld=gold?
I think it happened relatively recently, so dated versions of Clang
might not have it.
I can't remember the details now, but when I set up my FreeBSD 10.1
box, I don't think the bundled Clang had -fuse-ld yet.
- Kim