Permalink
Browse files

Added rebuild-all.sh script, and detect 32bit properly for rebuild.sh

  • Loading branch information...
derickr committed Feb 6, 2019
1 parent 0a87092 commit ddd2597e2f878bbab8797ea57e9f3ba445a15d30
Showing with 23 additions and 3 deletions.
  1. +16 −0 rebuild-all.sh
  2. +7 −3 rebuild.sh
@@ -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

Please sign in to comment.