[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.e
From: |
Zhi Yong Wu |
Subject: |
[Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.el5 |
Date: |
Tue, 30 Sep 2014 17:12:04 +0800 |
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 <address@hidden>
Signed-off-by: Zhi Yong Wu <address@hidden>
---
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
- [Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.el5,
Zhi Yong Wu <=