Skip to content
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

Only link against DL in the case that it is needed #380

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

mjcarroll
Copy link
Contributor

#334 added the ability to do binary relocatability.

When enabled for shared libraries, it requires the additional dependence on dl for the dladdr symbol. This was being unconditionally linked, even in the case that relocation was turned off.

This PR scopes the dl dependency to only when it is required.

@mjcarroll mjcarroll added beta Targeting beta release of upcoming collection 🎵 harmonic Gazebo Harmonic labels Aug 24, 2023
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Aug 24, 2023
@mjcarroll mjcarroll requested a review from azeey August 24, 2023 21:06
Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

LGTM. I haven't tested locally though.

@traversaro
Copy link
Contributor

Thanks for catching this!

@mjcarroll mjcarroll merged commit f47d611 into gz-cmake3 Aug 25, 2023
7 checks passed
@mjcarroll mjcarroll deleted the mjcarroll/scoped_dl_dep branch August 25, 2023 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants