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

Fix Darwin / macOS make error / dynamic module loading #1750

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

michaelortmann
Copy link
Member

@michaelortmann michaelortmann commented Jan 29, 2025

Found by: barracuda156
Patch by: michaelortmann
Fixes: #1662

One-line summary:
Use the usual dlopen method, if darwin version >= 9 with native dlopen

Additional description (if needed):
run misc/runautotools when merging (and misc/runautotools -f when testing this PR)

Also for darwin >= 9 switched default built type from static to dynamic and dropped the WEIRD_OS mark
Also removed dead old code:

eggdrop/aclocal.m4

Lines 628 to 630 in 028e756

LOAD_METHOD="rld"
fi
LOAD_METHOD="dyld"

rld was overwritten with dyld all the time
also rld is kinda pre posix 2001

Test cases demonstrating functionality (if applicable):
I tested on
Darwin michaels-iMac-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Thu Dec 5 23:45:11 PST 2024; root:xnu-8796.141.3.709.7~4/RELEASE_X86_64 x86_64
which is macOS Ventura 13.7.3
make eggdrop
to test dynamic loading of modules successfully.

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.

Configure breaks linking by manually adding bundle1.o: duplicate symbol dyld_stub_binding_helper
1 participant