[Scons-users] Using Linker Plugin with Scons

Justin Zane Chudgar justin at justinzane.com
Sun Oct 20 23:24:38 EDT 2013


When compiling with clang/clang++ and any of the options that output LLVM IR,
for example `-O4`, on compilation it is necessary to use the LLVM gold linker
plugin. This involved adding
`-Xlinker -plugin -Xlinker "/path/to/LLVMgold.so"`.

Though building everything with clang++ and -O4 and manually adding the above
options to the failed link command works, I cannot figure out how to have
scons do this.

Thanks for any guidance.

----------
________________________________________________________________
/ Justin Zane Chudgar........................................... \

| http://www.justinzane.com..................................... |

| 539-921-0738.................................................. |

| Robot, n.: |

| |

\ University administrator. /
----------------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://four.pairlist.net/pipermail/scons-users/attachments/20131020/1ef633c6/attachment.pgp


More information about the Scons-users mailing list