[Buildroot] [PATCH] yajl: fix static linking in a parallel build

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Apr 2 15:13:18 UTC 2016


Hello,

On Fri,  1 Apr 2016 21:18:12 +0200, Jörg Krause wrote:

> + FOREACH (test ${TESTS})
> +   GET_FILENAME_COMPONENT(testProg ${test} NAME_WE)
> +   ADD_EXECUTABLE(${testProg} ${test})
> +-  TARGET_LINK_LIBRARIES(${testProg} yajl m)
> ++  TARGET_LINK_LIBRARIES(${testProg} yajl_s m)

I am not sure to understand why this would fix the parallel build
issue. The parallel build problem comes from the fact that the library
and tests sit in different directories, and that they are built in
parallel with each other. Both the yajl and yajl_s libraries are built
in the same directory, separate from the tests directory. So I don't
quite see how changing from using yajl to yajl_s is going to make a
difference here. But maybe I'm missing something.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list