From: Peter Lieven <pl@kamp.de>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, famz@redhat.com, stefanha@redhat.com,
ronniesahlberg@gmail.com
Subject: Re: [Qemu-devel] [PATCH] block/iscsi: handle BUSY condition
Date: Thu, 05 Jun 2014 12:13:52 +0200 [thread overview]
Message-ID: <539042E0.6050603@kamp.de> (raw)
In-Reply-To: <53903BEF.9030706@redhat.com>
On 05.06.2014 11:44, Paolo Bonzini wrote:
> Il 05/06/2014 11:29, Peter Lieven ha scritto:
>>
>> It might be that we need a LIBS+= -lm to the Makefile in the root
>> directory. I had strange problems when linking qemu-img/qemu-io/qemu-nbd.
>
> cat > $TMPC << EOF
> #include <math.h>
> int main(void) { return isnan(sin(0.0)); }
> EOF
> if compile_prog "" "" ; then
> :
> elif compile_prog "" "-lm" ; then
> LIBS="-lm $LIBS"
> libs_qga="-lm $libs_qga"
> else
> error_exit "libm check failed"
> fi
>
>
> Shouldn't be necessary, should it?
I don't know actually. On my workstation it compiles, but on my build system I need to add this here
diff --git a/Makefile b/Makefile
index 423e373..69e1022 100644
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,10 @@ $(call set-vpath, $(SRC_PATH))
LIBS+=-lz $(LIBS_TOOLS)
+ifndef CONFIG_HAIKU
+LIBS+=-lm
+endif
+
HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
ifdef BUILD_DOCS
Otherwise I get unresolved references to log and exp...
I found that the above is only in /x86_64-softmmu/Makefile, but not in /Makefile
Peter
next prev parent reply other threads:[~2014-06-05 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1401384704-14103-1-git-send-email-pl@kamp.de>
[not found] ` <538772C9.8080500@redhat.com>
[not found] ` <53877F41.7090805@kamp.de>
[not found] ` <538787DC.10306@redhat.com>
[not found] ` <5387979F.1070103@kamp.de>
[not found] ` <53881C32.2040703@redhat.com>
[not found] ` <5388498C.9040007@kamp.de>
[not found] ` <538849D8.10806@redhat.com>
2014-06-05 9:29 ` [Qemu-devel] [PATCH] block/iscsi: handle BUSY condition Peter Lieven
2014-06-05 9:44 ` Paolo Bonzini
2014-06-05 10:13 ` Peter Lieven [this message]
2014-06-06 12:33 George-Cristian Bîrzan
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=539042E0.6050603@kamp.de \
--to=pl@kamp.de \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ronniesahlberg@gmail.com \
--cc=stefanha@redhat.com \
/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).