diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2019-05-16 10:51:34 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2019-07-19 12:52:04 +0100 |
commit | 02f9135be6bbb4f1ec1ebe55d4d63a55836ea197 (patch) | |
tree | 83e2c00b40c23353d6563c3d1ae61e7e2c030962 /Makefile.target | |
parent | f887849007312454574ebc1057a438beaa2916df (diff) |
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>
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target index 85216cace8..933b27453a 100644 --- a/Makefile.target +++ b/Makefile.target @@ -120,6 +120,7 @@ obj-$(CONFIG_TCG) += fpu/softfloat.o obj-y += target/$(TARGET_BASE_ARCH)/ obj-y += disas.o obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o +LIBS := $(libs_cpu) $(LIBS) ######################################################### # Linux user emulator target |