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 [thread overview]
Message-ID: <1231941790.5858.187.camel@nc> (raw)
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
Hi,
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.
Thanks!
-nc
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);
+}
+
EOF
rt=no
next reply other threads:[~2009-01-14 14:03 UTC|newest]
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 ` [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc 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:
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=1231941790.5858.187.camel@nc \
--to=natanael.copa@gmail.com \
--cc=kvm@vger.kernel.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.