diff options
author | Anatol Belski <ab@php.net> | 2015-06-28 00:10:41 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-06-28 00:10:41 +0200 |
commit | b81188518bc6018ad784492720558affeec7abf6 (patch) | |
tree | a61a639795757eccdbcdfe3511083dee56b36ed9 /makedist | |
parent | 2eea8c1adb91b92f917dcb89bbf0657b6cbea536 (diff) | |
download | php-git-b81188518bc6018ad784492720558affeec7abf6.tar.gz |
tweak the zendparse symbol to be exported with newer bison
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -103,6 +103,13 @@ rm -fr autom4te.cache/ # touching everything to be packaged find $MY_OLDPWD/php-$VER -exec touch -c {} \; +# tweak zendparse to be exported through ZEND_API +# NOTE this has to be revisited once bison supports foreign skeletons +# and that bison version is used. Read /usr/share/bison/README for more +sed -i 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.c +sed -i 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.h +sed -i 's,^#ifndef YYTOKENTYPE,#include "zend.h"\n#ifndef YYTOKENTYPE,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.h + # download pear $ECHO_N "makedist: Attempting to download PEAR's phar archive" if test ! -x wget; then |