KVM Archive on lore.kernel.org
 help / color / Atom feed
From: Natanael Copa <natanael.copa@gmail.com>
To: kvm@vger.kernel.org
Subject: [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc
Date: Wed, 14 Jan 2009 15:03:10 +0100
Message-ID: <1231941790.5858.187.camel@nc> (raw)

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]


I managed to build kvm on/for my uclibc distro, Alpine linux. The qemu
configure script failed to detect if it needed the -lrt ldflag. the
attatched patch fixes the test.

It applies to the just released 83 release as well.



PS. please CC me as i don't subscribe to the list.

[-- Attachment #2: kvm-82-uclibc.patch --]
[-- Type: text/x-patch, Size: 374 bytes --]

--- kvm-82.orig/qemu/configure	Wed Jan 14 13:40:28 2009
+++ kvm-82/qemu/configure	Wed Jan 14 13:41:28 2009
@@ -1068,7 +1068,10 @@
 cat > $TMPC <<EOF
 #include <signal.h>
 #include <time.h>
-int main(void) { clockid_t id; return clock_gettime(id, NULL); }
+int main(void) { clockid_t id; timer_t tid;
+	return clock_gettime(id, NULL) + timer_delete(tid); 

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 14:03 Natanael Copa [this message]
2009-01-15 16:37 ` Avi Kivity

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:

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

  git send-email \
    --in-reply-to=1231941790.5858.187.camel@nc \
    --to=natanael.copa@gmail.com \
    --cc=kvm@vger.kernel.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

KVM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kvm/0 kvm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kvm kvm/ https://lore.kernel.org/kvm \
	public-inbox-index kvm

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git