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

pkgconfig, static lib and uClibc linking fixes #174

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

pkgconfig, static lib and uClibc linking fixes #174

wants to merge 4 commits into from

Conversation

vincent-olivert-riera
Copy link

This pull request contains the following commits:

Install the pkgconfig file in the usual location
Let the shared and the static library have the same name
Allow the user to not build the shared library
Fix json_reformat, yajl_test and gen-extra-close linking with uClibc

Vicente Olivert Riera added 4 commits October 28, 2015 17:40
The will be differentiated by the extension (.so or .a)

Signed-off-by: Vicente Olivert Riera <[email protected]>
json_reformat, yajl_test and gen-extra-close call yajl_gen_* functions,
which internally use isnan() and isinf(). On glibc, these are provided
by libc, but on uClibc you need to link with -lm (like the spec says),
otherwise the build process will fail with an error like this one:

yajl_gen.c:(.text+0x67c): undefined reference to `__isnan'
yajl_gen.c:(.text+0x70c): undefined reference to `__isinf'

Signed-off-by: Vicente Olivert Riera <[email protected]>
@vincent-olivert-riera vincent-olivert-riera changed the title This pull request contains the following commits: pkgconfig, static lib and uClibc linking fixes Oct 29, 2015
tpetazzoni pushed a commit to buildroot/buildroot that referenced this pull request Nov 22, 2015
mpd's plugin soundcloud requires yajl. In static build context yajl library is
named yajl_s so linking against yajl fails:
  /bin/ld: cannot find -lyajl

Use a pull request patch [1] to let the shared and the static library
have the same name. They will be differentiated by the extension (.so or .a).

Fixes:
http://autobuild.buildroot.net/results/5ac/5acba9b0ed852512fc88e83973a3b5389e6d54be/
http://autobuild.buildroot.net/results/739/73934ad67efa121fedeaa03fdad290aa63f1485e/

[1] lloyd/yajl#174

Signed-off-by: Jörg Krause <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
@vincent-olivert-riera
Copy link
Author

@lloyd is this good to merge?

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.

1 participant