qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5


From: zwu . kernel
Subject: [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5
Date: Sat, 27 Sep 2014 09:13:58 +0800

From: Zhi Yong Wu <address@hidden>

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

Signed-off-by: Zhi Yong Wu <address@hidden>
---
 libcacard/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libcacard/Makefile b/libcacard/Makefile
index 0e7903f..40f7a28 100644
--- a/libcacard/Makefile
+++ b/libcacard/Makefile
@@ -1,5 +1,6 @@
 libcacard_includedir=$(includedir)/cacard
-
+CFLAGS += -fPIC
+LDFLAGS += $(LDFLAGS_SHARED)
 TOOLS += vscclient$(EXESUF)
 
 # objects linked into a shared library, built with libtool with -fPIC if 
required
-- 
1.5.5.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]