From e25abe9ca90aa013d1f1c5fb3e2e0287e8407382 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 3 Dec 2021 20:11:36 +0800 Subject: [PATCH] up --- plugins/php/versions/52/exif.sh | 6 +++++- plugins/php/versions/53/exif.sh | 6 +++++- plugins/php/versions/54/exif.sh | 6 +++++- plugins/php/versions/55/exif.sh | 6 +++++- plugins/php/versions/56/exif.sh | 6 +++++- plugins/php/versions/70/exif.sh | 6 +++++- plugins/php/versions/71/exif.sh | 6 +++++- plugins/php/versions/72/exif.sh | 6 +++++- plugins/php/versions/73/exif.sh | 6 +++++- plugins/php/versions/74/exif.sh | 6 +++++- plugins/php/versions/80/exif.sh | 6 +++++- 11 files changed, 55 insertions(+), 11 deletions(-) diff --git a/plugins/php/versions/52/exif.sh b/plugins/php/versions/52/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/52/exif.sh +++ b/plugins/php/versions/52/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/53/exif.sh b/plugins/php/versions/53/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/53/exif.sh +++ b/plugins/php/versions/53/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/54/exif.sh b/plugins/php/versions/54/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/54/exif.sh +++ b/plugins/php/versions/54/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/55/exif.sh b/plugins/php/versions/55/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/55/exif.sh +++ b/plugins/php/versions/55/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/56/exif.sh b/plugins/php/versions/56/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/56/exif.sh +++ b/plugins/php/versions/56/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/70/exif.sh b/plugins/php/versions/70/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/70/exif.sh +++ b/plugins/php/versions/70/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/71/exif.sh b/plugins/php/versions/71/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/71/exif.sh +++ b/plugins/php/versions/71/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/72/exif.sh b/plugins/php/versions/72/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/72/exif.sh +++ b/plugins/php/versions/72/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/73/exif.sh b/plugins/php/versions/73/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/73/exif.sh +++ b/plugins/php/versions/73/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/74/exif.sh b/plugins/php/versions/74/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/74/exif.sh +++ b/plugins/php/versions/74/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/80/exif.sh b/plugins/php/versions/80/exif.sh index c627e0175..10f0f81a3 100755 --- a/plugins/php/versions/80/exif.sh +++ b/plugins/php/versions/80/exif.sh @@ -44,8 +44,12 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi - cd $sourcePath/php${version}/ext/${LIBNAME} + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config