* [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5
@ 2014-09-27 1:13 zwu.kernel
2014-09-30 6:53 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: zwu.kernel @ 2014-09-27 1:13 UTC (permalink / raw)
To: qemu-devel; +Cc: zwu.kernel, Zhi Yong Wu
From: Zhi Yong Wu <zhiyong.wzy@alibaba-inc.com>
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 <zhiyong.wzy@alibaba-inc.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5
2014-09-27 1:13 [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5 zwu.kernel
@ 2014-09-30 6:53 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2014-09-30 6:53 UTC (permalink / raw)
To: zwu.kernel, qemu-devel; +Cc: Zhi Yong Wu
Il 27/09/2014 03:13, zwu.kernel@gmail.com ha scritto:
> From: Zhi Yong Wu <zhiyong.wzy@alibaba-inc.com>
>
> 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 <zhiyong.wzy@alibaba-inc.com>
> ---
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-30 6:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-27 1:13 [Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5 zwu.kernel
2014-09-30 6:53 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).