[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5 |
Date: |
Tue, 30 Sep 2014 08:53:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
Il 27/09/2014 03:13, address@hidden ha scritto:
> 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)
This is included into the main Makefile, so please do the change there.
Paolo
> # objects linked into a shared library, built with libtool with -fPIC if
> required
>