qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] build: list libraries after objects, for proper


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] build: list libraries after objects, for proper linkage
Date: Mon, 22 Aug 2011 11:30:16 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

On 08/14/2011 08:31 AM, Diego Elio Pettenò wrote:
Without this change, when using -Wl,--as-needed with GNU linker, the
libraries would be discarded.

Signed-off-by: Diego Elio Pettenò<address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori

---
  libcacard/Makefile |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcacard/Makefile b/libcacard/Makefile
index 5cd7594..3ea845f 100644
--- a/libcacard/Makefile
+++ b/libcacard/Makefile
@@ -18,7 +18,7 @@ QEMU_CFLAGS+=-I../
  libcacard.lib-y=$(addsuffix .lo,$(basename $(libcacard-y)))

  vscclient: $(libcacard-y) $(QEMU_OBJS) vscclient.o
-       $(call quiet-command,$(CC) $(libcacard_libs) -lrt -o $@ $^,"  LINK  $@")
+       $(call quiet-command,$(CC) -o $@ $^ $(libcacard_libs) -lrt,"  LINK  $@")

  clean:
        rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ vscclient *.lo .libs/* *.la 
*.pc
@@ -37,7 +37,7 @@ install-libcacard:
        @echo "libtool is missing, please install and rerun configure"; exit 1
  else
  libcacard.la: $(libcacard.lib-y) $(QEMU_OBJS_LIB)
-       $(call quiet-command,libtool --mode=link --quiet --tag=CC $(CC) $(libcacard_libs) 
-lrt -rpath $(libdir) -o $@ $^,"  lt LINK $@")
+       $(call quiet-command,libtool --mode=link --quiet --tag=CC $(CC) -rpath $(libdir) 
-o $@ $^ $(libcacard_libs) -lrt,"  lt LINK $@")

  libcacard.pc: $(libcacard_srcpath)/libcacard.pc.in
        sed -e 's|@LIBDIR@|$(libdir)|' \




reply via email to

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