On Thu, Jul 10, 2014 at 7:28 AM, Fam Zheng <[email protected]> wrote:
>
> Could be because of this rule:
>
> > # libtool will build the .o files, too
> > $(libcacard-obj-y): | $(libcacard-lobj-y)
>
> Does removing the "|" (order deps) solve the issue?
I don't think so:
libcacard.la: $(libcacard-lobj-y)
$(call LINK,$^)
The problem is the libcacard-obj-y target is not required by anything.
Try this on qemu.git/master:
$ make distclean
$ ./configure
$ make libcacard/vscclient
libcacard/vscclient.o: In function `do_command':
/home/stefanha/qemu/libcacard/vscclient.c:500: undefined reference to
`vreader_get_reader_by_id'
/home/stefanha/qemu/libcacard/vscclient.c:502: undefined reference to
`vcard_emul_force_card_insert'
/home/stefanha/qemu/libcacard/vscclient.c:503: undefined reference to
`vreader_get_name'
...
The Makefile is broken. I suspect that putting proper dependencies in
place with fix this issue.
Stefan