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 internal sdlnet build on macOS, enables nullmodem/modem support on macOS for SDL1 builds #3892

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

badlogic
Copy link
Contributor

Fix internal sdlnet build on macOS, which re-enables support for nullmodem and modem on macOS for SDL1 builds.

What issue(s) does this PR address?

See #3534, on macOS, SDL1 builds do not link in sdlnet, and thus modem support is disabled.

The problem was that the sdlnet build produces a libSDL_net.a file that not only contains the object files, but also libSDL.a and libSDLmain.a. This leads to issues down the line, when linking against libSDL_net.a, producing non-sensical linker error messages like building for macOS-x86_64 but attempting to link with file built for macOS-x86_64.

I have not found a way to prevent the addition of those files. The fix is thus simply deleting them from the .a file right after libSDL_net.a has finished building.

Does this PR introduce new feature(s)?

No.

Does this PR introduce any breaking change(s)?

No.

@badlogic badlogic changed the title Fix internal sdlnet build on macOS, enables nullmodem/modem support o… Fix internal sdlnet build on macOS, enables nullmodem/modem support on macOS for SDL1 builds Dec 21, 2022
@joncampbell123 joncampbell123 merged commit e676199 into joncampbell123:master Dec 22, 2022
@badlogic badlogic deleted the fix-3534 branch December 22, 2022 06:37
@badlogic badlogic restored the fix-3534 branch December 23, 2022 20:44
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