qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] fix configure: duplicate/incorrect order of -lrt


From: Rick Liu
Subject: [Qemu-devel] [PATCH] fix configure: duplicate/incorrect order of -lrt
Date: Fri, 30 May 2014 14:20:21 -0700

From 55a9abb88c53ace0791a01269ad0690c7ddcdcf7 Mon Sep 17 00:00:00 2001
From: Rick Liu <address@hidden>
Date: Fri, 30 May 2014 14:10:20 -0700
Subject: [PATCH] fix configure: duplicate/incorrect order of -lrt

'-lrt' flag duplicationi/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>
---
 configure |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index b7635e4..179496a 100755
--- a/configure
+++ b/configure
@@ -2808,8 +2808,8 @@ 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"
+  LIBS="$LIBS -lrt"
+  libs_qga="$libs_qga -lrt"
 fi

 if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \
--
1.7.9.5


reply via email to

[Prev in Thread] Current Thread [Next in Thread]