From ea372e74634f14bdb534f4921e1e325e3f589c8f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 24 Nov 2020 12:23:03 +0100 Subject: [PATCH] Fix bug #80402: Don't strip -lpthread The current behavior has been introduced 20 years ago in f9e375f493a1aeacbbcc8f2f00880d05b4ba7aaf as part of a larger change. It's not clear to me why special treatement of -lpthread is necessary here. --- NEWS | 1 + build/php.m4 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0387c08514..472272f723 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ PHP NEWS (al at coralnet dot name) . Fixed bug #80393 (Build of PHP extension fails due to configuration gap with libtool). (kir dot morozov at gmail dot com) + . Fixed bug #80402 (configure filtering out -lpthread). (Nikita) - Fileinfo: . Fixed bug #77961 (finfo_open crafted magic parsing SIGABRT). (cmb) diff --git a/build/php.m4 b/build/php.m4 index 3e19937b9c..468b4984c7 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -498,7 +498,7 @@ dnl Internal, don't use. dnl AC_DEFUN([_PHP_ADD_LIBRARY_SKELETON],[ case $1 in - c|c_r|pthread*[)] ;; + c|c_r[)] ;; *[)] ifelse($3,,[ _PHP_X_ADD_LIBRARY($1,$2,$5) ],[ -- 2.40.0