From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/5] configure: move common libraries to config-host.mak
Date: Tue, 02 Apr 2013 20:51:40 +0200 [thread overview]
Message-ID: <515B28BC.3020505@redhat.com> (raw)
In-Reply-To: <CAFEAcA-Us3wP5fmNC8L2LyQ-TYx9__qyiVd8s=aYtZi81=+drA@mail.gmail.com>
Il 02/04/2013 20:17, Peter Maydell ha scritto:
> This is because we seem to have lost the trailing "-lm -lz"; here's
> the tail end of the link command from a build on master for
> comparison:
>
> translate-all.o xen-stub.o ../libqemuutil.a ../libqemustub.a -lrt
> -pthread -lgthread-2.0 -lglib-2.0 -lrt -lpcre -lutil -lbluetooth
> -lncurses -ltinfo -lvdeplug -luuid -lpng12 -lz -lm -laio -lfdt
> -lpixman-1 -lm -lz
I can fix this, but apparently upstream pixman doesn't support static linking:
$ pkg-config pixman-1 --libs
-lpixman-1
$ pkg-config pixman-1 --libs --static
-lpixman-1
which is why my distro vendor does not provide static libraries. :)
Here is the fix:
diff --git a/Makefile.target b/Makefile.target
index c8513f1..2636103 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -31,10 +31,6 @@ PROGS+=$(QEMU_PROGW)
endif
STPFILES=
-ifndef CONFIG_HAIKU
-LIBS+=-lm
-endif
-
config-target.h: config-target.h-timestamp
config-target.h-timestamp: config-target.mak
@@ -149,6 +145,10 @@ include $(SRC_PATH)/Makefile.objs
all-obj-y = $(obj-y)
all-obj-y += $(addprefix ../, $(common-obj-y))
+ifndef CONFIG_HAIKU
+LIBS+=-lm
+endif
+
ifdef QEMU_PROGW
# The linker builds a windows executable. Make also a console executable.
$(QEMU_PROGW): $(all-obj-y) ../libqemuutil.a ../libqemustub.a
Paolo
next prev parent reply other threads:[~2013-04-02 18:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 14:44 [Qemu-devel] [PATCH 0/5] trim down config-target.mak Paolo Bonzini
2013-04-02 14:44 ` [Qemu-devel] [PATCH 1/5] configure: move TARGET_*_ALIGNMENT to target-*/cpu.h Paolo Bonzini
2013-04-02 16:43 ` Peter Maydell
2013-04-02 16:56 ` Paolo Bonzini
2013-04-02 17:17 ` Peter Maydell
2013-04-02 17:26 ` Paolo Bonzini
2013-04-02 17:47 ` Peter Maydell
2013-04-03 8:55 ` Paolo Bonzini
2013-04-02 17:57 ` Aurelien Jarno
2013-04-02 14:44 ` [Qemu-devel] [PATCH 2/5] cpu: default TARGET_LONG_ALIGNMENT to TARGET_LONG_SIZE Paolo Bonzini
2013-04-02 15:16 ` Peter Maydell
2013-04-02 14:44 ` [Qemu-devel] [PATCH 3/5] configure: move CONFIG_QEMU_LDST_OPTIMIZATION to config-host.mak Paolo Bonzini
2013-04-02 16:45 ` Peter Maydell
2013-04-02 14:44 ` [Qemu-devel] [PATCH 4/5] configure: move common libraries " Paolo Bonzini
2013-04-02 17:01 ` Peter Maydell
2013-04-02 17:26 ` Paolo Bonzini
2013-04-02 18:17 ` Peter Maydell
2013-04-02 18:51 ` Paolo Bonzini [this message]
2013-04-02 14:44 ` [Qemu-devel] [PATCH 5/5] configure: CONFIG_NO_XEN is duplicated Paolo Bonzini
2013-04-02 16:54 ` Stefano Stabellini
2013-04-02 17:24 ` Peter Maydell
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=515B28BC.3020505@redhat.com \
--to=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.