+######################################################################
+# Support building shared library libqblock
+libqblock.la:
+ $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libqblock
V="$(V)" TARGET_DIR="$*/" libqblock.la,)
Does not work for out of tree build:
$ make -C obj-amd64 libqblock.la
make: Entering directory `/src/qemu/obj-amd64'
make: Entering an unknown directory
make: *** libqblock: No such file or directory. Stop.
make: Leaving an unknown directory
make: *** [libqblock.la] Error 2
make: Leaving directory `/src/qemu/obj-amd64'
If I fake what 'configure' should be doing and add the directory and
link to Makefile, there are still problems:
$ make -C obj-amd64 libqblock.la
make: Entering directory `/src/qemu/obj-amd64'
make[1]: *** No rule to make target `libqblock.lo', needed by
`libqblock.la'. Stop.
make: *** [libqblock.la] Error 2
Could u give more tip about this error? what is obj-amd64?
My understanding is you tried to build the library from another
directory similar as:
/extend_disk/xiawenc/qemu/qemu have the qemu source code, then
address@hidden xiawenc]$ pwd
/extend_disk/xiawenc
address@hidden xiawenc]$ make -C qemu/qemu libqblock.la
failed.
Please correct me.
I think the library should be built by default, like vscclient which
probably nobody uses.
libvirt can't link to it now for OOM issue, but I will wrapper the
APIs with RPC later.