qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] libcacard: use the library?
@ 2015-04-27  9:44 Michael Tokarev
  2015-04-27  9:49 ` Daniel P. Berrange
  2015-04-27 10:37 ` Paolo Bonzini
  0 siblings, 2 replies; 13+ messages in thread
From: Michael Tokarev @ 2015-04-27  9:44 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-06-18  9:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27  9:44 [Qemu-devel] libcacard: use the library? Michael Tokarev
2015-04-27  9:49 ` Daniel P. Berrange
2015-04-27  9:54   ` Michael Tokarev
2015-04-27 10:00   ` Peter Maydell
2015-04-27 10:37 ` Paolo Bonzini
2015-06-17 18:25   ` Michael Tokarev
2015-06-17 19:26     ` Paolo Bonzini
2015-06-17 20:15       ` Michael Tokarev
2015-06-18  8:09         ` Paolo Bonzini
2015-06-18  8:11           ` Michael Tokarev
2015-06-18  8:18             ` Paolo Bonzini
2015-06-18  9:07               ` Markus Armbruster
2015-06-18  9:27                 ` Daniel P. Berrange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).