From 6b9aab37595c259df2f61100431ebd70f4a02efe Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 9 Dec 2022 19:22:32 +0800 Subject: [PATCH] Update fileinfo.sh --- plugins/php/versions/common/fileinfo.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/php/versions/common/fileinfo.sh b/plugins/php/versions/common/fileinfo.sh index a2be4a9a9..4de574ce6 100755 --- a/plugins/php/versions/common/fileinfo.sh +++ b/plugins/php/versions/common/fileinfo.sh @@ -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