libtool: Don't remove gcov *.gcno files (#15441)

The libtool bundled with PHP is outdated and deletes *.gcno files used by
gcov during the build process.

While this issue has already been resolved upstream [1], incorporating the
fix at this point may not be practical. Therefore, we attempt to apply a
fix to the current version.

This change will enable proper coverage output for third-party PHP
extensions.

[1]: https://github.com/autotools-mirror/libtool/blob/master/NEWS#L605
This commit is contained in:
Go Kudo 2024-08-17 01:18:25 +09:00 committed by GitHub
parent 8853cf3ae9
commit d6afe05380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3467,7 +3467,7 @@ EOF
tempremovelist=`$echo "$output_objdir/*"`
for p in $tempremovelist; do
case $p in
*.$objext)
*.$objext | *.gcno)
;;
$output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
if test "X$precious_files_regex" != "X"; then