[Scons-users] Using Linker Plugin with Scons
Dirk Bächle
tshortik at gmx.de
Mon Oct 21 15:25:47 EDT 2013
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"
Justin,
if you're building a shared library, you'll have to use SHLINKFLAGS as
opposed to the simple LINKFLAGS for static stuff. That's why Bill wrote
*LINKFLAGS.
Regards,
Dirk
More information about the Scons-users
mailing list