Update fileinfo.sh

This commit is contained in:
midoks 2022-12-09 19:22:32 +08:00
parent e8a152b1a3
commit 6b9aab3759
1 changed files with 4 additions and 4 deletions

View File

@ -58,10 +58,10 @@ Install_lib()
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config
# FIND_C99=`cat Makefile|grep c99`
# if [ "$FIND_C99" == "" ];then
# sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile
# fi
FIND_C99=`cat Makefile|grep c99`
if [ "$version" -gt "74" ] && [ "$FIND_C99" == "" ];then
sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=gnu99/g' Makefile
fi
make clean && make && make install && make clean