Skip to content

Commit d6afe05

Browse files
authored
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
1 parent 8853cf3 commit d6afe05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/ltmain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3467,7 +3467,7 @@ EOF
34673467
tempremovelist=`$echo "$output_objdir/*"`
34683468
for p in $tempremovelist; do
34693469
case $p in
3470-
*.$objext)
3470+
*.$objext | *.gcno)
34713471
;;
34723472
$output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
34733473
if test "X$precious_files_regex" != "X"; then

0 commit comments

Comments
 (0)