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

Link against libm when needed #182

Merged
merged 1 commit into from
May 9, 2015
Merged

Link against libm when needed #182

merged 1 commit into from
May 9, 2015

Commits on May 1, 2015

  1. Link against libm when needed

    In certain C libraries (e.g uClibc), isnan() and related functions are
    implemented in libm, so json-c needs to link against it. This commit
    therefore adds an AC_TRY_LINK() test to check whether a program
    calling isnan() can be properly linked with no special flags. If not,
    we assume linking against libm is needed.
    
    The json-c.pc.in file is also adjusted so that in the case of static
    linking against json-c, -lm is also used.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
    tpetazzoni committed May 1, 2015
    Configuration menu
    Copy the full SHA
    93582ad View commit details
    Browse the repository at this point in the history