[Scons-users] Using Linker Plugin with Scons

Dirk Bächle tshortik at gmx.de
Mon Oct 21 14:41:46 EDT 2013


Hi Justin,

On 21.10.2013 20:20, Justin Zane Chudgar wrote:

>> Justin,

>>

>> Please take a look at the manpage.

>> You're looking for *LINKFLAGS

>>

>> Depending on what you are linking, you'll need to add it to the appropriate

>> version of this flag(s).

> Bill: I have "rtfm" and tried various incantations to add the `-Xlinker -

> plugin -Xlinker "/path/to/LLVMgold.so"` options to LINKFLAGS. It seems that no

> matter how I try this:

> `env.Append(LINKFLAGS = Split("-Xlinker -plugin -Xlinker

> \"/path/to/LLVMgold.so\""))`

> or

> `env.Append(LINKFLAGS = Split("-Xlinker \"-plugin\" -Xlinker

> \"/path/to/LLVMgold.so\"")`

> etc... I end up with an output commandline that only includes "-plugin -

> Xlinker"


can you show us the complete SConstruct/SConscript?

Regards,

Dirk



More information about the Scons-users mailing list