Skip to content

Conversation

@hahnjo
Copy link
Member

@hahnjo hahnjo commented Sep 29, 2025

No description provided.

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.
@hahnjo hahnjo requested review from hageboeck and pcanal September 29, 2025 14:33
@hahnjo hahnjo self-assigned this Sep 29, 2025
@hahnjo hahnjo requested a review from bellenot as a code owner September 29, 2025 14:33
Copy link
Member

@hageboeck hageboeck left a 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.
Copy link
Member

@vgvassilev vgvassilev left a 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.

Copy link
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@github-actions
Copy link

Test Results

    22 files      22 suites   3d 17h 58m 44s ⏱️
 3 683 tests  3 683 ✅ 0 💤 0 ❌
79 131 runs  79 131 ✅ 0 💤 0 ❌

Results for commit 85e409d.

@hahnjo hahnjo merged commit f7ef444 into root-project:master Sep 30, 2025
27 checks passed
@hahnjo hahnjo deleted the core-cling branch September 30, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants