From: Anatol Belski Date: Sat, 27 Jun 2015 22:10:41 +0000 (+0200) Subject: tweak the zendparse symbol to be exported with newer bison X-Git-Tag: php-7.1.0alpha3~25^2~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b81188518bc6018ad784492720558affeec7abf6;p=php tweak the zendparse symbol to be exported with newer bison --- diff --git a/makedist b/makedist index 41392273b7..1552f9efb3 100755 --- a/makedist +++ b/makedist @@ -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