summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/npth/npth/0001-Revert-Fix-problem-with-regression-tests-on-recent-g.patch
blob: 47c426b4a5c3c3f15f28835fdbdca743c64ab6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From e43524868bb4901703d63876f9d49f73ca75b3ab Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 12 May 2021 20:27:52 -0700
Subject: [PATCH] Revert "Fix problem with regression tests on recent glibc."

This reverts commit 3a9d32eb59194b989656548755066ccd9feb36ac.

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 configure.ac | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8a9373c..8cda28d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -284,11 +284,9 @@ AC_TYPE_SSIZE_T
 #
 # Checks for libraries and functions.
 #
-#   We test for pthread_detach because glibc 2.22 includes
-#   pthread_create but not pthread_detach.
 if test "$have_w32_system" = no; then
-  AC_SEARCH_LIBS([pthread_detach],[pthread])
-  case "x$ac_cv_search_pthread_detach" in
+  AC_SEARCH_LIBS([pthread_create],[pthread])
+  case "x$ac_cv_search_pthread_create" in
     xno)
       have_pthread=no
       ;;
@@ -297,7 +295,7 @@ if test "$have_w32_system" = no; then
       ;;
     *)
       have_pthread=yes
-      config_libs="$config_libs $ac_cv_search_pthread_detach"
+      config_libs="$config_libs $ac_cv_search_pthread_create"
       ;;
   esac
   if test "$have_pthread" != no; then
-- 
2.31.1