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

Support FreeBSD #48

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Support FreeBSD #48

merged 1 commit into from
Sep 25, 2024

Conversation

eschnett
Copy link
Owner

No description provided.

@@ -504,6 +504,13 @@ static void *load_library(const char *const libname) {
assert(0);
}

#elif __FreeBSD__

// dlmopen is not supported, always use dlopen instead
Copy link
Contributor

Choose a reason for hiding this comment

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

I think dlmopen is a glibc-only thing?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, it doesn't exist on FreeBSD. There's a run-time option to choose between dlopen and dlmopen, and I'm ignoring this on FreeBSD.

Copy link
Contributor

Choose a reason for hiding this comment

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

What I wanted to suggest is to allow dlmopen only on glibc, rather than excluding on all platforms that don't support it, since it's more of an exception rather than the norm.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I'm not excluding any platforms. I'm ignoring the option so that FreeBSD unconditionally uses dlopen. The alternative would be to emit an error on FreeBSD, but that doesn't seem worth the trouble.

@eschnett eschnett merged commit 67292e8 into main Sep 25, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants