Permalink
Please sign in to comment.
Browse files
Added rebuild-all.sh script, and detect 32bit properly for rebuild.sh
- Loading branch information...
@@ -0,0 +1,16 @@ | |||
#!/bin/bash | |||
|
|||
for i in /usr/local/php/*; do | |||
version=`echo $i | sed 's@.*/@@'` | |||
echo -n "Rebuilding for PHP ${version}: " | |||
|
|||
export PATH=/usr/local/php/${version}/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin | |||
|
|||
./rebuild.sh >/tmp/vld-for-${version}.log 2>&1 | |||
|
|||
if [[ $? == 0 ]]; then | |||
echo "DONE" | |||
else | |||
echo "FAIL" | |||
fi | |||
done |
@@ -1,4 +1,8 @@ | |||
#!/bin/sh | |||
#!/bin/bash | |||
|
|||
export CFLAGS="-Wall -Wextra -Wdeclaration-after-statement -Wmissing-field-initializers -Wshadow -Wno-unused-parameter -ggdb3" | |||
phpize && ./configure && make clean && make && make install | |||
bit64=`php -r 'echo PHP_INT_SIZE == 8 ? "1" : "0";'` | |||
|
|||
if [[ ${bit64} != "1" ]]; then | |||
export CFLAGS="-m32" | |||
fi | |||
phpize && ./configure --enable-xdebug-dev && make clean && make all && make install |
0 comments on commit
ddd2597