From 04b36cd81adaa442b6a65a26c3cf9847342f7bd9 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 3 Dec 2021 23:30:01 +0800 Subject: [PATCH] up --- plugins/php/versions/53/fileinfo.sh | 8 +++++++- plugins/php/versions/54/fileinfo.sh | 8 +++++++- plugins/php/versions/55/fileinfo.sh | 8 +++++++- plugins/php/versions/56/fileinfo.sh | 8 +++++++- plugins/php/versions/70/fileinfo.sh | 8 +++++++- plugins/php/versions/71/fileinfo.sh | 8 +++++++- plugins/php/versions/72/fileinfo.sh | 8 +++++++- plugins/php/versions/73/fileinfo.sh | 8 +++++++- plugins/php/versions/74/fileinfo.sh | 8 +++++++- plugins/php/versions/80/fileinfo.sh | 8 +++++++- plugins/php/versions/81/fileinfo.sh | 2 +- 11 files changed, 71 insertions(+), 11 deletions(-) diff --git a/plugins/php/versions/53/fileinfo.sh b/plugins/php/versions/53/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/53/fileinfo.sh +++ b/plugins/php/versions/53/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/54/fileinfo.sh b/plugins/php/versions/54/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/54/fileinfo.sh +++ b/plugins/php/versions/54/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/55/fileinfo.sh b/plugins/php/versions/55/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/55/fileinfo.sh +++ b/plugins/php/versions/55/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/56/fileinfo.sh b/plugins/php/versions/56/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/56/fileinfo.sh +++ b/plugins/php/versions/56/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/70/fileinfo.sh b/plugins/php/versions/70/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/70/fileinfo.sh +++ b/plugins/php/versions/70/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/71/fileinfo.sh b/plugins/php/versions/71/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/71/fileinfo.sh +++ b/plugins/php/versions/71/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/72/fileinfo.sh b/plugins/php/versions/72/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/72/fileinfo.sh +++ b/plugins/php/versions/72/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/73/fileinfo.sh b/plugins/php/versions/73/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/73/fileinfo.sh +++ b/plugins/php/versions/73/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/74/fileinfo.sh b/plugins/php/versions/74/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/74/fileinfo.sh +++ b/plugins/php/versions/74/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/80/fileinfo.sh b/plugins/php/versions/80/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/80/fileinfo.sh +++ b/plugins/php/versions/80/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/81/fileinfo.sh b/plugins/php/versions/81/fileinfo.sh index 78c035840..6966d6aaa 100755 --- a/plugins/php/versions/81/fileinfo.sh +++ b/plugins/php/versions/81/fileinfo.sh @@ -52,7 +52,7 @@ Install_lib() sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile fi - make clean && make && make install && make clean + make && make install && make clean fi