[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB
From: |
Alexey Perevalov |
Subject: |
[Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB |
Date: |
Fri, 29 Sep 2017 13:11:14 +0300 |
In case of -pthread already exists in QEMU_CFLAGS,
compilation of sample pthread program successed,
but -pthread is not putting into PTHREAD_LIBS in this case.
PTHREAD_LIB is using while compiling tests/migration/stress.
Signed-off-by: Alexey Perevalov <address@hidden>
---
configure | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure b/configure
index 6587e80..a2dd044 100755
--- a/configure
+++ b/configure
@@ -3359,6 +3359,7 @@ int main(void) {
EOF
if compile_prog "" "" ; then
pthread=yes
+ PTHREAD_LIB="-pthread"
else
for pthread_lib in $PTHREADLIBS_LIST; do
if compile_prog "" "$pthread_lib" ; then
--
2.7.4
- [Qemu-devel] [PATCH] fix tests/migration/stress build, Alexey Perevalov, 2017/09/29
- Message not available
- [Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB,
Alexey Perevalov <=
- Re: [Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB, Daniel P. Berrange, 2017/09/29
- Re: [Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB, Alexey Perevalov, 2017/09/29
- Re: [Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB, Daniel P. Berrange, 2017/09/29
- Re: [Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB, Alexey Perevalov, 2017/09/29
- Re: [Qemu-devel] [PATCH] configure: correctly define PTHREAD_LIB, Daniel P. Berrange, 2017/09/29
Re: [Qemu-devel] [PATCH] fix tests/migration/stress build, Daniel P. Berrange, 2017/09/29