fix: Add ${CMAKE_DL_LIBS} to linking flags for task worker and task executor. - #64
Conversation
WalkthroughThe changes update the CMake configuration for the Changes
Possibly related PRs
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
When trying to build spider using g++-11 I found that the task executor and task worker could not build because they were missing symbols for dlopen and dlclose during linking. According to the cmake docs the CMAKE_DL_LIBS variable holds the appropriate linking flags to maker sure dlopen and dlcose are available.
I found some sources claiming that newer versions of libc contain these symbols directly (instead of them being in libdl as with my g++-11 based toolchain), so that may have been hiding this issue previously.
Checklist
breaking change.
Validation performed
Summary by CodeRabbit