Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as well

This is a backport of c518932c03
from the PHP 7.4 branch.
This commit is contained in:
Nikita Popov 2019-10-23 11:06:51 +02:00
parent 2213bd36fd
commit fa89c41f37

View File

@ -398,6 +398,8 @@ AC_DEFUN([PHP_EVAL_LIBLINE],[
$2="[$]$2 -pthread"
else
PHP_RUN_ONCE(EXTRA_LDFLAGS, [$ac_i], [EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"])
PHP_RUN_ONCE(EXTRA_LDFLAGS_PROGRAM, [$ac_i],
[EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"])
fi
;;
-l*[)]