Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile.frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Only when building statically into PHP (i.e. not via phpize)
ifeq ($(PHP_AST_SHARED),no)

# Ensure Zend’s generated sources are ready before building ast
$(builddir)/ast.lo: \
$(top_srcdir)/Zend/zend_language_parser.c \
$(top_srcdir)/Zend/zend_language_scanner.c

endif
1 change: 1 addition & 0 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ PHP_ARG_ENABLE(ast, whether to enable ast support,

if test "$PHP_AST" != "no"; then
PHP_NEW_EXTENSION(ast, ast.c ast_data.c, $ext_shared)
PHP_ADD_MAKEFILE_FRAGMENT
fi