FoldingAtHome / fah-client-bastet

Folding@home client, code named Bastet
GNU General Public License v3.0
74 stars 13 forks source link

Allow to link extra libraries with parameter 'extra_lib'. #238

Closed berny156 closed 6 months ago

berny156 commented 6 months ago

When linking extern event-library on openSUSE the extra lib 'event_pthreads' is required.

jcoffland commented 6 months ago

Have you tried the linkflags option?

jcoffland commented 6 months ago

I think this should work:

scons linkflags=-levent_pthreads
berny156 commented 6 months ago

Well, the option works, however "-levent_pthreads" is prepended before the object files and has no effect there. Linking still fails. The library must be appended after the object files.

jcoffland commented 6 months ago

Ok. Thanks for trying it. I've added a libs option to cbang. This feature is better suited there.

scons libs=event_pthreads

https://github.com/CauldronDevelopmentLLC/cbang/commit/c284c192b2dbe6bd74238609137b237ba05ebc45

berny156 commented 5 months ago

Thanks a lot, looks clean & straight forward!