Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rebuild-all.sh script, and detect 32bit properly for rebuild.sh
- Loading branch information
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |