summaryrefslogtreecommitdiffstats
path: root/package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2016-03-02 21:25:00 +0100
committerPeter Korsgaard <peter@korsgaard.com>2016-03-02 21:25:00 +0100
commit28cd1ed30aa4959c744ee37a6070cf22a66fb31f (patch)
treefe08f3fdff6fe458a3a21cf814f12ed6c7ba54e4 /package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch
parent13222c07293becaefc69c46c8f90b04ddc7023d9 (diff)
parent2dfabd10d1e484d84c0e6b5a58ab43d131ca3230 (diff)
downloadbuildroot-28cd1ed30aa4959c744ee37a6070cf22a66fb31f.tar.gz
buildroot-28cd1ed30aa4959c744ee37a6070cf22a66fb31f.zip
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch')
-rw-r--r--package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch b/package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch
new file mode 100644
index 0000000000..08553f9459
--- /dev/null
+++ b/package/yajl/0001-cmake-uClibc-Fix-missing-libm-for-tests.patch
@@ -0,0 +1,30 @@
+From a36814a6f9fbb62f49897f9fb1e68d204602e199 Mon Sep 17 00:00:00 2001
+From: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
+Date: Tue, 2 Feb 2016 17:28:31 +0100
+Subject: [PATCH] cmake: uClibc: Fix missing libm for tests
+
+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>
+---
+ test/api/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/api/CMakeLists.txt b/test/api/CMakeLists.txt
+index cd65a54..e0ce2f6 100644
+--- a/test/api/CMakeLists.txt
++++ b/test/api/CMakeLists.txt
+@@ -21,5 +21,5 @@ LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../../${YAJL_DIST_NAME}/lib)
+ FOREACH (test ${TESTS})
+ GET_FILENAME_COMPONENT(testProg ${test} NAME_WE)
+ ADD_EXECUTABLE(${testProg} ${test})
+- TARGET_LINK_LIBRARIES(${testProg} yajl)
++ TARGET_LINK_LIBRARIES(${testProg} yajl m)
+ ENDFOREACH()
+--
+2.7.0
+
OpenPOWER on IntegriCloud