lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

cmake: Fix static linking in parallel build #187

Closed joerg-krause closed 5 years ago

joerg-krause commented 8 years ago

The yajl build system contains a race condition, which gets triggered by high make --jobs settings - It tries to link the executable gen-extra-close against libyajl before it is created:

[ 21%] Linking C executable gen-extra-close
[ 26%] Building C object src/CMakeFiles/yajl_s.dir/yajl_buf.c.o
/home/test/autobuild/instance-3/output/host/opt/ext-toolchain/bfin-uclinux/bfin-uclinux/bin/ld.real: cannot find -lyajl

Fix this issue by linking against the shared yail library in a shared build. Apply this fix also to all other build targets who are linking against the library.

joerg-krause commented 5 years ago

Project seems to be dead. Closing.