Skip to content

Commit

Permalink
tweak the zendparse symbol to be exported with newer bison
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Jun 27, 2015
1 parent 2eea8c1 commit b811885
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions makedist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b811885

Please sign in to comment.