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

Static library builds as libyajl_s.a and nothing can find it #209

Open
adamnovak opened this issue May 22, 2018 · 0 comments
Open

Static library builds as libyajl_s.a and nothing can find it #209

adamnovak opened this issue May 22, 2018 · 0 comments

Comments

@adamnovak
Copy link

The build system names the static library with a _s suffix, as libyajl_s.a. This causes problems like https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877285 downstream because you can't use the expected -lyajl linker flag to link against it. You need to specify -lyajl_s. Notably, the pkg-config file that gets generated from the build does not tell pkg-config about this. Running pkg-config --static --libs yajl still recommends -lyajl as the appropriate linker flag, which causes downstream builds using pkg-config to find the static library to fail.

The build system should call the static library libyajl.a on Linux, as static and dynamic libraries on Linux are supposed to have the same name.

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

No branches or pull requests

1 participant