Closed berny156 closed 6 months ago
Have you tried the linkflags
option?
I think this should work:
scons linkflags=-levent_pthreads
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.
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
Thanks a lot, looks clean & straight forward!
When linking extern event-library on openSUSE the extra lib 'event_pthreads' is required.