Skip to content

Conversation

crazywhalecc
Copy link

@crazywhalecc crazywhalecc commented Sep 7, 2025

Restore conditional compilation for GET_SHELL_CB macro to support static builds.

This PR fixes the interactive shell -a not running with musl-static binaries.

EDIT: Oh, I didn't realize this issue only applies to CLI. For other SAPIs, should we use NULL or dlsym directly?

@crazywhalecc
Copy link
Author

I realize that doing this might make other SAPIs dependent on the cli, and maybe uncommenting it directly is not a good idea. Statically built cli should not use dl, but I don't know how to do it more appropriately.

@henderkes
Copy link

We should turn this into a draft and open a bug report instead.

@crazywhalecc crazywhalecc marked this pull request as draft September 7, 2025 14:56
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.

2 participants