1 [PATCH] fix json_reformat linking on uClibc
3 json_reformat calls yajl_gen_* functions, which internally use isnan() /
4 isinf(). On Glibc, these are provided by libc, but on uClibc you need to
5 link with -lm (like the spec says), so ensure we do so.
7 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9 reformatter/CMakeLists.txt | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 Index: yajl-2.0.2/reformatter/CMakeLists.txt
13 ===================================================================
14 --- yajl-2.0.2.orig/reformatter/CMakeLists.txt
15 +++ yajl-2.0.2/reformatter/CMakeLists.txt
18 ADD_EXECUTABLE(json_reformat ${SRCS})
20 -TARGET_LINK_LIBRARIES(json_reformat yajl_s)
21 +TARGET_LINK_LIBRARIES(json_reformat yajl_s m)
23 # copy the binary into the output directory
24 GET_TARGET_PROPERTY(binPath json_reformat LOCATION)