Skip to content

pkgconfig, static lib and uClibc linking fixes #172

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

Closed
wants to merge 4 commits into from
Closed

pkgconfig, static lib and uClibc linking fixes #172

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 15:39
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
Copy link
Author

Superseded by #174

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