2019-03-13 04:30:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-12-12 21:59:51 +00:00
|
|
|
VERSION=$2
|
2019-03-13 04:30:06 +00:00
|
|
|
|
2019-12-12 21:59:51 +00:00
|
|
|
export PATH=/usr/local/php-$VERSION/bin:$PATH
|
|
|
|
export C_INCLUDE_PATH=/usr/local/php-$VERSION/include/php/main:/usr/local/php-$VERSION/include/php:$C_INCLUDE_PATH
|
|
|
|
export CPLUS_INCLUDE_PATH=/usr/local/php-$VERSION/include/php/main:/usr/local/php-$VERSION/include/php:$CPLUS_INCLUDE_PATH
|
|
|
|
|
|
|
|
pushd ../ext/google/protobuf
|
2019-03-13 04:30:06 +00:00
|
|
|
make clean || true
|
|
|
|
set -e
|
|
|
|
# Add following in configure for debug: --enable-debug CFLAGS='-g -O0'
|
2019-12-10 01:02:10 +00:00
|
|
|
phpize && ./configure CFLAGS='-g -O0 -Wall' && make
|
2019-03-13 04:30:06 +00:00
|
|
|
popd
|