Removed check for pthread-0.7 on Linux which causes problems on some glibc2
systems and break static linkage. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
53a8af592a
commit
08ee61e920
2 changed files with 36 additions and 87 deletions
13
configure.in
13
configure.in
|
|
@ -1494,13 +1494,10 @@ UNIX_THREAD=""
|
|||
if test "$wxUSE_THREADS" = "1"; then
|
||||
dnl find if POSIX threads are available
|
||||
|
||||
dnl For glibc 2 users who have the old libc 5 too check pthread-0.7 first
|
||||
AC_CHECK_LIB(pthread-0.7, pthread_create, [
|
||||
UNIX_THREAD="unix/threadpsx.cpp"
|
||||
THREADS_LINK="pthread-0.7"
|
||||
],[
|
||||
dnl standard lib name is pthread
|
||||
AC_CHECK_LIB(pthread, pthread_create, [
|
||||
dnl standard lib name is pthread
|
||||
dnl We no longer test for pthread-0.7 as it breaks compilation on some
|
||||
dnl glibc2 systems, especially for static linkage.
|
||||
AC_CHECK_LIB(pthread, pthread_create, [
|
||||
UNIX_THREAD="unix/threadpsx.cpp"
|
||||
THREADS_LINK="pthread"
|
||||
], [
|
||||
|
|
@ -1515,8 +1512,6 @@ if test "$wxUSE_THREADS" = "1"; then
|
|||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
if test "$THREADS_LINK" != ""; then
|
||||
AC_DEFINE(wxUSE_THREADS)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue