configure: only link capstone to emulation targets
commit02f9135be6bbb4f1ec1ebe55d4d63a55836ea197
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 16 May 2019 09:51:34 +0000 (16 10:51 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 19 Jul 2019 11:52:04 +0000 (19 12:52 +0100)
tree83e2c00b40c23353d6563c3d1ae61e7e2c030962
parentf887849007312454574ebc1057a438beaa2916df
configure: only link capstone to emulation targets

Only the emulators link to code that uses capstone, so adding it to the
global LIBs places undesirable dependancies on other binaries, in
particular the tools.

There is no variable that covers both user emulation and machine
emulation, so add a new "$libs_cpu" for this purpose.

In particular this removes the 8 MB capstone dep from the things
qemu-img links against, allowing for a more minimal installation
in scenarios that don't want system emulators installed.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Makefile.target
configure