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 <[email protected]>
Signed-off-by: Zhi Yong Wu <[email protected]>
---
 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


Reply via email to