summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshahbag <fariba.khan@gmail.com>2013-03-07 18:11:17 -0800
committerLloyd Hilaiel <lloyd@hilaiel.com>2014-02-15 10:44:13 +0100
commit5d4bf5250180cec3f12d192023870ea74a19013b (patch)
tree4ce29aeb50e7292815202fa4668414db2ffa8c65
parent02d677c4fb8ff546170ee661084e2676eadee578 (diff)
downloadyajl-5d4bf5250180cec3f12d192023870ea74a19013b.tar.gz
json_reformat should link against libm
This is specific to qnx. build error with qnx6.5.0 ../yajl-2.0.1/lib/libyajl_s.a(yajl_gen.c.obj): In function yajl_gen_double': yajl_gen.c:(.text+0x5b9): undefined reference to_DclassBuilding C object example/CMakeFiles/parse_config.dir/parse_config.c.obj ' yajl_gen.c:(.text+0x5cf): undefined reference to `_Dclass' cc: /opt/qnx650/host/linux/x86/usr/bin/ntox86-ld error 1 make[2]: *** [reformatter/json_reformat] Error 1 any platform that links does not link libm while linking libstdc http://community.qnx.com/sf/discussion/do/listPosts/projects.toolchain/discussion.core_development_tools.topc10811?_pagenum=2
-rw-r--r--reformatter/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/reformatter/CMakeLists.txt b/reformatter/CMakeLists.txt
index 42de0b8..6020d81 100644
--- a/reformatter/CMakeLists.txt
+++ b/reformatter/CMakeLists.txt
@@ -26,7 +26,7 @@ LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../${YAJL_DIST_NAME}/lib)
ADD_EXECUTABLE(json_reformat ${SRCS})
-TARGET_LINK_LIBRARIES(json_reformat yajl_s)
+TARGET_LINK_LIBRARIES(json_reformat m yajl_s)
# copy the binary into the output directory
GET_TARGET_PROPERTY(binPath json_reformat LOCATION)