diff options
Diffstat (limited to 'recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch')
-rw-r--r-- | recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch b/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch new file mode 100644 index 0000000..d74ddb9 --- /dev/null +++ b/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From e5906138d8042817cc3b49872dd181c66a11abdf Mon Sep 17 00:00:00 2001 | ||
2 | From: Ting Liu <b28495@freescale.com> | ||
3 | Date: Wed, 6 Mar 2013 01:56:35 -0600 | ||
4 | Subject: [PATCH] configure: properly check if -lrt is needed | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | commit 8bacde8d86a09699207d85d4bab06162aed18dc4 | ||
8 | |||
9 | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> | ||
10 | Signed-off-by: Blue Swirl <blauwirbel@gmail.com> | ||
11 | Signed-off-by: Ting Liu <b28495@freescale.com> | ||
12 | --- | ||
13 | configure | 9 +++++++-- | ||
14 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/configure b/configure | ||
17 | index 999375a..29b3e30 100755 | ||
18 | --- a/configure | ||
19 | +++ b/configure | ||
20 | @@ -2444,13 +2444,18 @@ fi | ||
21 | cat > $TMPC <<EOF | ||
22 | #include <signal.h> | ||
23 | #include <time.h> | ||
24 | -int main(void) { clockid_t id; return clock_gettime(id, NULL); } | ||
25 | +int main(void) { | ||
26 | + timer_create(CLOCK_REALTIME, NULL, NULL); | ||
27 | + return clock_gettime(CLOCK_REALTIME, NULL); | ||
28 | +} | ||
29 | EOF | ||
30 | |||
31 | if compile_prog "" "" ; then | ||
32 | : | ||
33 | -elif compile_prog "" "-lrt" ; then | ||
34 | +# we need pthread for static linking. use previous pthread test result | ||
35 | +elif compile_prog "" "-lrt $pthread_lib" ; then | ||
36 | LIBS="-lrt $LIBS" | ||
37 | + libs_qga="-lrt $libs_qga" | ||
38 | fi | ||
39 | |||
40 | if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \ | ||
41 | -- | ||
42 | 1.7.9.7 | ||
43 | |||