From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXgaZ-0006K1-KE for qemu-devel@nongnu.org; Fri, 26 Sep 2014 21:14:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXgaU-0005jQ-KA for qemu-devel@nongnu.org; Fri, 26 Sep 2014 21:14:19 -0400 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:54562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXgaU-0005jF-Cq for qemu-devel@nongnu.org; Fri, 26 Sep 2014 21:14:14 -0400 Received: by mail-pa0-f49.google.com with SMTP id lf10so14333012pab.22 for ; Fri, 26 Sep 2014 18:14:07 -0700 (PDT) From: zwu.kernel@gmail.com Date: Sat, 27 Sep 2014 09:13:58 +0800 Message-Id: <1411780438-7472-1-git-send-email-zwu.kernel@gmail.com> Subject: [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: zwu.kernel@gmail.com, Zhi Yong Wu From: 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 Signed-off-by: Zhi Yong Wu --- 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