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

Error looking up pkg-config --libs --static #1642

Closed
hamishmack opened this issue Sep 5, 2022 · 1 comment
Closed

Error looking up pkg-config --libs --static #1642

hamishmack opened this issue Sep 5, 2022 · 1 comment
Labels
bug Something isn't working wontfix

Comments

@hamishmack
Copy link
Collaborator

Cabal 3.8 asks pkg-config for linker options for both dynamic and static linking.

See haskell/cabal@bf32602

For some derivations (glib for instance) pkg-config can fail when --static is passed. This might be because the library only has dynamic libraries. The error looks like this:

Package libpcre was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre', required by 'glib-2.0', not found

This could be fixed if there was lazier failure in Cabal. It could store the message instead of the options and print it when anyone tried to use them.

@stale
Copy link

stale bot commented Jan 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 18, 2023
@stale stale bot closed this as completed Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix
Projects
None yet
Development

No branches or pull requests

2 participants