Skip to content

Commit b811885

Browse files
committed
tweak the zendparse symbol to be exported with newer bison
1 parent 2eea8c1 commit b811885

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

makedist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ rm -fr autom4te.cache/
103103
# touching everything to be packaged
104104
find $MY_OLDPWD/php-$VER -exec touch -c {} \;
105105

106+
# tweak zendparse to be exported through ZEND_API
107+
# NOTE this has to be revisited once bison supports foreign skeletons
108+
# and that bison version is used. Read /usr/share/bison/README for more
109+
sed -i 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.c
110+
sed -i 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.h
111+
sed -i 's,^#ifndef YYTOKENTYPE,#include "zend.h"\n#ifndef YYTOKENTYPE,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.h
112+
106113
# download pear
107114
$ECHO_N "makedist: Attempting to download PEAR's phar archive"
108115
if test ! -x wget; then

0 commit comments

Comments
 (0)