|
@@ -42,8 +42,8 @@ Upgrade_Nginx() {
|
|
|
echo "Press Ctrl+c to cancel or Press any key to continue..."
|
|
|
char=`get_char`
|
|
|
tar xzf nginx-${NEW_nginx_ver}.tar.gz
|
|
|
- [ "${Fedora_ver}" == '28' ] && patch -d nginx-${nginx_ver} -p1 < 0001-unix-ngx_user-Apply-fix-for-really-old-bug-in-glibc-.patch
|
|
|
- patch -d nginx-${nginx_ver} -p0 < nginx-auto-cc-gcc.patch
|
|
|
+ [ "${Fedora_ver}" == '28' ] && patch -d nginx-${NEW_nginx_ver} -p1 < 0001-unix-ngx_user-Apply-fix-for-really-old-bug-in-glibc-.patch
|
|
|
+ patch -d nginx-${NEW_nginx_ver} -p0 < nginx-auto-cc-gcc.patch
|
|
|
pushd nginx-${NEW_nginx_ver}
|
|
|
make clean
|
|
|
sed -i 's@CFLAGS="$CFLAGS -g"@#CFLAGS="$CFLAGS -g"@' auto/cc/gcc # close debug
|
|
@@ -51,6 +51,8 @@ Upgrade_Nginx() {
|
|
|
nginx_configure_args_tmp=`cat $$ | grep 'configure arguments:' | awk -F: '{print $2}'`
|
|
|
rm -rf $$
|
|
|
nginx_configure_args=`echo ${nginx_configure_args_tmp} | sed "s@--with-openssl=../openssl-...... @--with-openssl=../openssl-${openssl_ver} @" | sed "s@--with-pcre=../pcre-.... @--with-pcre=../pcre-${pcre_ver} @"`
|
|
|
+ export LUAJIT_LIB=/usr/local/lib
|
|
|
+ export LUAJIT_INC=/usr/local/include/luajit-2.1
|
|
|
./configure ${nginx_configure_args}
|
|
|
make -j ${THREAD}
|
|
|
if [ -f "objs/nginx" ]; then
|
|
@@ -111,6 +113,8 @@ Upgrade_Tengine() {
|
|
|
tengine_configure_args_tmp=`cat $$ | grep 'configure arguments:' | awk -F: '{print $2}'`
|
|
|
rm -rf $$
|
|
|
tengine_configure_args=`echo ${tengine_configure_args_tmp} | sed "s@--with-openssl=../openssl-...... @--with-openssl=../openssl-${openssl_ver} @" | sed "s@--with-pcre=../pcre-.... @--with-pcre=../pcre-${pcre_ver} @"`
|
|
|
+ export LUAJIT_LIB=/usr/local/lib
|
|
|
+ export LUAJIT_INC=/usr/local/include/luajit-2.1
|
|
|
./configure ${tengine_configure_args}
|
|
|
make -j ${THREAD}
|
|
|
if [ -f "objs/nginx" ]; then
|