Linaro / OpenCSD

CoreSight trace stream decoder developed openly
https://github.com/Linaro/opencsd/wiki
Other
141 stars 53 forks source link

[build] add missing dependences for parallel builds #5

Closed sebpop closed 7 years ago

sebpop commented 7 years ago

When compiling with "make -j8" the build used to fail with two errors:

g++ -Wl,-z,defs -shared -o /root/etm/decoder/decoder/lib/linux/dbg/libcstraced_c_api.so -Wl,-soname,libcstraced_c_api.so ./linux/dbg/ocsd_c_api.o ./linux/dbg/ocsd_c_api_deprc_fn.o -L/root/etm/decoder/decoder/lib/linux/dbg -lcstraced /usr/bin/ld: cannot find -lcstraced

[...]

g++ -Wl,-z,defs "-m64" -shared -o decoder/lib/linux64/dbg/libcstraced_c_api.so -Wl,-soname,libcstraced_c_api.so ./linux64/dbg/ocsd_c_api.o ./linux64/dbg/ocsd_c_api_deprc_fn.o -Ldecoder/lib/linux64/dbg -lcstraced decoder/lib/linux64/dbg/libcstraced.so: file not recognized: File truncated

This patch fixes the missing dependences for both static and shared libcstraced_c_api.

mikel-armbb commented 7 years ago

Thanks. I'll add this to the next patch release.

Mike