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

build_clibs_linux.sh: Build shared libraries #24

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

AlexanderArvidsson
Copy link
Contributor

@AlexanderArvidsson AlexanderArvidsson commented Dec 28, 2024

This adds support for shared libraries on linux, enabling hot reloading without having to mess with the sokol app state. Hot reloading via static lib causes issues which can only be solved by persisting the internal sokol app state, which isn't available from Odin.
With a shared library, hot reloading works out of the box and makes development super fast.

-fPIC is required when compiling as a shared library.

Let me know if you prefer these to be a separate script (like MacOS).

Corresponding PR in the main sokol repo for the Odin generator:
floooh/sokol#1172

@floooh floooh merged commit d65d1c9 into floooh:main Dec 29, 2024
3 checks passed
@floooh
Copy link
Owner

floooh commented Dec 29, 2024

Looks good, thanks!

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