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

gfx.nim: Drop duplicate libraries for linking #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fleischie
Copy link

I am preparing the sokol nim-bindings for the wayland-feature, and stumbled about duplicate link-libraries when running the examples. These are due to src/sokol/gfx.nim duplicating them.

This PR removes them, and running them manually it seems to still compiles alright. (The libraries are still included via src/sokol/app.nim) Additionally I am certain that gfx.nim does not use these libraries directly.

@floooh
Copy link
Owner

floooh commented Jul 1, 2022

Good catch, but shouldn't at least GL be linked? (for the theoretical case that sokol_gfx.h is used without sokol_app.h)

PS: are you getting warnings about those duplicate libraries? I still need to thorougly test the Nim bindings on Linux (and Windows), maybe I missed that.

@fleischie
Copy link
Author

You are absolutely correct, -lGL should stay.

I have not gotten any warnings, but I was adding a switch for disabling X11 and it still linked all of the libraries and I was confused for a good 15 minutes.

@fleischie fleischie force-pushed the chore/drop-duplicate-linker-flags branch from 8caaaf1 to 9960816 Compare July 1, 2022 17:02
Firstly these are defined in src/sokol/app.nim and secondly these are
not directly used in gfx.nim.
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