Skip to content

Commit 65e96c1

Browse files
authored
Autotools: Fix phpdbg build (#15373)
With 04a67cd the list of source files are now added alphabetically. Previously the phpdbg_parser.c was added before the phpdbg_lexer.c. Which caused the "sapi/phpdbg/phpdbg_lexer.l:8:10: fatal error: 'phpdbg_parser.h' file not found" error. To make the order of source files irrelevant, the Makefile substitutions needs to be fixed - the 3rd argument of PHP_ADD_MAKEFILE_FRAGMENT macro, which is the substitution of the $(builddir) Make variable. The $(builddir)/phpdbg_lexer.lo was previously substituted to an absolute path. And the relative should be used, for Make to be able to find the dependent target.
1 parent 10ed74e commit 65e96c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if test "$PHP_PHPDBG" != "no"; then
6464

6565
PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/phpdbg/Makefile.frag],
6666
[$abs_srcdir/sapi/phpdbg],
67-
[$abs_builddir/sapi/phpdbg])
67+
[sapi/phpdbg])
6868
PHP_SELECT_SAPI([phpdbg],
6969
[program],
7070
m4_normalize([

0 commit comments

Comments
 (0)