[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] libcacard: use the library?
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] libcacard: use the library? |
Date: |
Mon, 27 Apr 2015 12:44:52 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 |
Currently we link individual object files from libcacard
to qemu-system binaries, this way (from Makefile.objs):
libcacard-y += libcacard/cac.o libcacard/event.o
libcacard-y += libcacard/vcard.o libcacard/vreader.o
...
common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y)
Why can't we use the actual library, and just add the
linker flag, -Ilibcacard -lcacard?
libcacard is built only when libtool is found, which
is kinda illogical since libtool is not needed to link
these object files with qemu. And libtool is already
used (if found) to link qemu binaries, so using it to
link binaries with libcacard is already done.
How about replacing these common-obj-$(CONFIG_SMARTCARD_NSS)
with appropriate linker flags, and doing that only for
these binaries which actually need libcacard?
Thanks,
/mjt
- [Qemu-devel] libcacard: use the library?,
Michael Tokarev <=