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

'pkg-config --libs glew' returns unnecessary flags: -lX11 -lGLU -lGL #301

Open
yurivict opened this issue Mar 18, 2021 · 1 comment
Open
Assignees

Comments

@yurivict
Copy link

$ pkg-config --libs glew
-L/usr/local/lib -lGLEW -lX11 -lGLU -lGL 

It should only return -L/usr/local/lib -lGLEW. More flags are returned when the --static argument is given.

Redundant link flags cause ports depending on GLEW also add redundant dependencies, because this is based on what libraries binaries are link with.

@nigels-com nigels-com self-assigned this Mar 21, 2021
@Micket
Copy link

Micket commented Jun 30, 2021

Unless I am mistaken, for the actual link steps when building glew it's just visualinfo that requires -lGL at all (so there is also some needless linking going on for libGLEW and glewinfo that would be appropriate to remove)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants