-
Couldn't load subscription status.
- Fork 1.4k
[CMake] More cleanups to libCling linking #20003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Nothing should access libCling directly, and tests in core/base/ don't seem to use dl* functions directly anymore, so libdl isn't needed either.
... as it was already done on Windows: It uses some symbols and this allows to remove some bad linker options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable! Let's see what the CI has to say.
They should not be propagated to targets that link against libCling (which also nobody should do).
ld: warning: -bind_at_load is deprecated on macOS From $ man ld: Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols when the binary is loaded, rather than lazily. This contradicts the flags RTLD_LAZY|RTLD_LOCAL passed to dlopen when loading libCling, and is different from the behavior on other platforms that don't have this flag, such as Linux. Also remove the warning suppression that was hiding this deprecation message. It was added as part of commit 5ad4ab9 ("[cmake] Silence macOS linker warnings on -undefined dynamic_lookup:"), which we don't use anymore for libCling since the previous commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good change to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
Test Results 22 files 22 suites 3d 17h 58m 44s ⏱️ Results for commit 85e409d. |
No description provided.