Skip to content

Commit

Permalink
Added rebuild-all.sh script, and detect 32bit properly for rebuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Feb 6, 2019
1 parent 0a87092 commit ddd2597
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
16 changes: 16 additions & 0 deletions rebuild-all.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
10 changes: 7 additions & 3 deletions rebuild.sh
@@ -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.