355a24856fa4b4f69cdd9e1c128f6f2d93e2134b
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / yajl / 0001-math-link.patch
1 [PATCH] fix json_reformat linking on uClibc
2
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.
6
7 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
8 ---
9  reformatter/CMakeLists.txt |    2 +-
10  1 file changed, 1 insertion(+), 1 deletion(-)
11
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
16 @@ -26,7 +26,7 @@
17  
18  ADD_EXECUTABLE(json_reformat ${SRCS})
19  
20 -TARGET_LINK_LIBRARIES(json_reformat yajl_s)
21 +TARGET_LINK_LIBRARIES(json_reformat yajl_s m)
22  
23  # copy the binary into the output directory
24  GET_TARGET_PROPERTY(binPath json_reformat LOCATION)