qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: "Diego Elio Pettenò" <flameeyes@flameeyes.eu>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] build: list libraries after objects, for proper linkage
Date: Sat, 13 Aug 2011 07:07:06 -0700	[thread overview]
Message-ID: <20110813140706.GD4606@bow.redhat.com> (raw)
In-Reply-To: <1313328684-25619-1-git-send-email-flameeyes@flameeyes.eu>

On Sun, Aug 14, 2011 at 03:31:24PM +0200, Diego Elio Pettenò wrote:
> Without this change, when using -Wl,--as-needed with GNU linker, the
> libraries would be discarded.
> 

Thanks, my bad, didn't know about this switch, makes perfect sense, will add
to the pull request (I should send one by the end of the week).

> Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
> ---
>  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)|' \
> -- 
> 1.7.6
> 
> 

  reply	other threads:[~2011-08-14 14:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14 13:31 [Qemu-devel] [PATCH] build: list libraries after objects, for proper linkage Diego Elio Pettenò
2011-08-13 14:07 ` Alon Levy [this message]
2011-08-22 16:30 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110813140706.GD4606@bow.redhat.com \
    --to=alevy@redhat.com \
    --cc=flameeyes@flameeyes.eu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).