yajl-2.0.4-math-link.patch 844 B

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