[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/8] configure: duplicate/incorrect order of -lrt
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 7/8] configure: duplicate/incorrect order of -lrt |
Date: |
Tue, 10 Jun 2014 07:56:20 +0200 |
From: Rick Liu <address@hidden>
'-lrt' flag duplication/incorrect order
would cause 'undefined reference to clock_gettime' error during compilation
time.
Before fix:
... -o qemu-bridge-helper qemu-bridge-helper.o -lrt -pthread -lgthread-2.0
-lrt -lglib-2.0
After fix:
... -o qemu-bridge-helper qemu-bridge-helper.o -pthread -lgthread-2.0 -lrt
-lglib-2.0
Reference:
http://hi.baidu.com/sanitywolf/item/7a8b69c1e76dd220a0b50ab1
Signed-off-by: Rick Liu <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
configure | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index a994f41..96f91ad 100755
--- a/configure
+++ b/configure
@@ -3452,9 +3452,9 @@ EOF
if compile_prog "" "" ; then
:
# we need pthread for static linking. use previous pthread test result
-elif compile_prog "" "-lrt $pthread_lib" ; then
- LIBS="-lrt $LIBS"
- libs_qga="-lrt $libs_qga"
+elif compile_prog "" "$pthread_lib -lrt" ; then
+ LIBS="$LIBS -lrt"
+ libs_qga="$libs_qga -lrt"
fi
if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \
--
1.8.3.1
- [Qemu-devel] [PULL 5/8] libcacard: improve documentation, (continued)
[Qemu-devel] [PULL 3/8] libcacard: replace qemu thread primitives with glib ones, Paolo Bonzini, 2014/06/10
[Qemu-devel] [PULL 6/8] rules.mak: Rewrite unnest-vars, Paolo Bonzini, 2014/06/10
[Qemu-devel] [PULL 8/8] configure: unset interfering variables, Paolo Bonzini, 2014/06/10
[Qemu-devel] [PULL 7/8] configure: duplicate/incorrect order of -lrt,
Paolo Bonzini <=
Re: [Qemu-devel] [PULL 0/8] build system and libcacard changes for 2014-06-10, Peter Maydell, 2014/06/10