qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.el5
@ 2014-09-30  9:12 Zhi Yong Wu
  2014-09-30  9:28 ` Paolo Bonzini
  0 siblings, 1 reply; 7+ messages in thread
From: Zhi Yong Wu @ 2014-09-30  9:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: zwu.kernel, Zhi Yong Wu

lt LINK libcacard.la
  CC    libcacard/vscclient.o
lt LINK vscclient
/usr/bin/ld: -f may not be used without -shared
collect2: ld returned 1 exit status
make: *** [vscclient] Error 1

Suguested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Zhi Yong Wu <zhiyong.wzy@alibaba-inc.com>
---
 Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index b33aaac..7cbf7dd 100644
--- a/Makefile
+++ b/Makefile
@@ -149,6 +149,8 @@ ifneq ($(wildcard config-host.mak),)
 include $(SRC_PATH)/tests/Makefile
 endif
 ifeq ($(CONFIG_SMARTCARD_NSS),y)
+CFLAGS += -fPIC
+LDFLAGS += $(LDFLAGS_SHARED)
 include $(SRC_PATH)/libcacard/Makefile
 endif
 
-- 
1.5.5.6

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

end of thread, other threads:[~2014-09-30 15:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30  9:12 [Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.el5 Zhi Yong Wu
2014-09-30  9:28 ` Paolo Bonzini
2014-09-30 13:57   ` Zhi Yong Wu
2014-09-30 14:06     ` Paolo Bonzini
2014-09-30 15:09       ` Zhi Yong Wu
2014-09-30 15:16         ` Paolo Bonzini
2014-09-30 15:26           ` Zhi Yong Wu

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).