|
From: | Peter Lieven |
Subject: | Re: [Qemu-devel] [PATCH] block/iscsi: handle BUSY condition |
Date: | Thu, 05 Jun 2014 12:13:52 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |