summaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-06-28 00:10:41 +0200
committerAnatol Belski <ab@php.net>2015-06-28 00:10:41 +0200
commitb81188518bc6018ad784492720558affeec7abf6 (patch)
treea61a639795757eccdbcdfe3511083dee56b36ed9 /makedist
parent2eea8c1adb91b92f917dcb89bbf0657b6cbea536 (diff)
downloadphp-git-b81188518bc6018ad784492720558affeec7abf6.tar.gz
tweak the zendparse symbol to be exported with newer bison
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist7
1 files changed, 7 insertions, 0 deletions
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