lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

cmake: uClibc: Fix missing libm for tests #184

Closed maximeh closed 6 years ago

maximeh commented 8 years ago

At the link time, the tests are not linked against libm which cause an error with uClibc based toolchain:

../../yajl-2.1.0/lib/libyajl.so.2.1.0: undefined reference to __isnan' ../../yajl-2.1.0/lib/libyajl.so.2.1.0: undefined reference to__isinf'

Signed-off-by: Maxime Hadjinlian maxime.hadjinlian@gmail.com

hfox commented 8 years ago

I tried this, but it only fixes the symptoms for me, as soon as I try to link against it everything fails.gentoo bug id #512738 has some more information. (and a workaround)