[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] configure: Don't rely on special pthreads libra
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH 2/8] configure: Don't rely on special pthreads library |
Date: |
Mon, 20 Sep 2010 00:50:44 +0200 |
Haiku has pthreads integrated into its libroot.so library. No linker arguments
are needed for it, so don't fail if -lpthread and similar don't link.
Signed-off-by: Andreas Färber <address@hidden>
---
configure | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/configure b/configure
index da32a1c..2ba35a4 100755
--- a/configure
+++ b/configure
@@ -1706,13 +1706,17 @@ cat > $TMPC << EOF
#include <pthread.h>
int main(void) { pthread_create(0,0,0,0); return 0; }
EOF
-for pthread_lib in $PTHREADLIBS_LIST; do
- if compile_prog "" "$pthread_lib" ; then
- pthread=yes
- LIBS="$pthread_lib $LIBS"
- break
- fi
-done
+if compile_prog "" "" ; then
+ pthread=yes
+else
+ for pthread_lib in $PTHREADLIBS_LIST; do
+ if compile_prog "" "$pthread_lib" ; then
+ pthread=yes
+ LIBS="$pthread_lib $LIBS"
+ break
+ fi
+ done
+fi
if test "$mingw32" != yes -a "$pthread" = no; then
echo
--
1.7.1.rc2.7.g3e7f1
- [Qemu-devel] [PATCH 0/8] Add Haiku host support, Andreas Färber, 2010/09/19
- [Qemu-devel] [PATCH 1/8] configure: Add basic support for Haiku, Andreas Färber, 2010/09/19
- [Qemu-devel] [PATCH 2/8] configure: Don't rely on special pthreads library,
Andreas Färber <=
- [Qemu-devel] [PATCH 3/8] Haiku doesn't have libm, Andreas Färber, 2010/09/19
- [Qemu-devel] [PATCH 4/8] nbd: Haiku has _IO() in its BSD compatibility layer, Andreas Färber, 2010/09/19
- [Qemu-devel] [PATCH 5/8] tap: Add stub for Haiku, Andreas Färber, 2010/09/19
- [Qemu-devel] [PATCH 6/8] slirp: Silence warning on Haiku, Andreas Färber, 2010/09/19
- [Qemu-devel] [FYI 7/8] qemu_malloc: Use areas on Haiku for sizes > 1 MiB, Andreas Färber, 2010/09/19
- [Qemu-devel] [FYI 8/8] ui: Haiku frontend, Andreas Färber, 2010/09/19
- [Qemu-devel] Re: [HaikuPorts-devs] [FYI 7/8] qemu_malloc: Use areas on Haiku for sizes > 1 MiB, Oliver Tappe, 2010/09/20
- [Qemu-devel] Re: [HaikuPorts-devs] [FYI 7/8] qemu_malloc: Use areas on Haiku for sizes > 1 MiB, Andreas Färber, 2010/09/21
[Qemu-devel] Re: [HaikuPorts-devs] [PATCH 0/8] Add Haiku host support, Ingo Weinhold, 2010/09/20