mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
configure: Don't rely on special pthreads library
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 <andreas.faerber@web.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
committed by
Blue Swirl
parent
179cf40000
commit
bd00d539d3
@@ -1710,13 +1710,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
|
||||
|
||||
Reference in New Issue
Block a user