Skip to content

Commit 4935241

Browse files
henderkesnikic
authored andcommitted
add dependency on zend if compiling statically
1 parent dc59854 commit 4935241

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Makefile.frag

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Only when building statically into PHP (i.e. not via phpize)
2+
ifeq ($(PHP_AST_SHARED),no)
3+
4+
# Ensure Zend’s generated sources are ready before building ast
5+
$(builddir)/ast.lo: \
6+
$(top_srcdir)/Zend/zend_language_parser.c \
7+
$(top_srcdir)/Zend/zend_language_scanner.c
8+
9+
endif

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ PHP_ARG_ENABLE(ast, whether to enable ast support,
55

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

0 commit comments

Comments
 (0)