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

ogc: define weak symbols for opengx functions #82

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

mardy
Copy link
Collaborator

@mardy mardy commented Sep 26, 2024

This allows building a client application without linking to opengx, if the client itself does not need OpenGL. The opengx functions used by SDL are defined as weak, so that they will be used only if a strong symbol is not found during linking.

$ nm /opt/devkitpro/portlibs/wii/lib/libSDL2.a | grep ogx
00000000 W ogx_get_proc_address
00000000 W ogx_initialize

Partial fix for #81

Depends on devkitPro/opengx#70

This allows building a client application without linking to opengx, if
the client itself does not need OpenGL. The opengx functions used by SDL
are defined as weak, so that they will be used only if a strong symbol
is not found during linking.

    $ nm /opt/devkitpro/portlibs/wii/lib/libSDL2.a | grep ogx
    00000000 W ogx_get_proc_address
    00000000 W ogx_initialize

Partial fix for devkitPro#81
@WinterMute WinterMute merged commit f1d4573 into devkitPro:ogc-sdl-2.28 Sep 28, 2024
3 checks passed
WinterMute pushed a commit that referenced this pull request Oct 27, 2024
This allows building a client application without linking to opengx, if
the client itself does not need OpenGL. The opengx functions used by SDL
are defined as weak, so that they will be used only if a strong symbol
is not found during linking.

    $ nm /opt/devkitpro/portlibs/wii/lib/libSDL2.a | grep ogx
    00000000 W ogx_get_proc_address
    00000000 W ogx_initialize

Partial fix for #81
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