From 551e40039e364498f2b36114de4da9238be1b448 Mon Sep 17 00:00:00 2001 From: JackyTang Date: Fri, 14 Feb 2020 07:30:50 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=85=B3=E9=97=ADdebug=E6=A8=A1=E5=BC=8F,?= =?UTF-8?q?=E5=87=8F=E5=B0=8F=E7=BC=96=E8=AF=91=E5=90=8E=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=A7=E5=B0=8F=202.=E4=BC=98=E5=8C=96GCC=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 7ea0a01..168e7c4 100644 --- a/install.sh +++ b/install.sh @@ -319,6 +319,9 @@ nginx_install(){ echo -e "${OK} ${GreenBG} 即将开始编译安装 Nginx, 过程稍久,请耐心等待 ${Font}" sleep 4 + # 关闭debug模式,减小编译后的文件大小 + sed -i 's@CFLAGS="$CFLAGS -g"@#CFLAGS="$CFLAGS -g"@' auto/cc/gcc + cd nginx-${nginx_version} ./configure --prefix="${nginx_dir}" \ --with-http_ssl_module \ @@ -330,6 +333,7 @@ nginx_install(){ --with-http_mp4_module \ --with-http_secure_link_module \ --with-http_v2_module \ + --with-cc-opt='-O3' \ --with-openssl=../openssl-"$openssl_version" judge "编译检查" make && make install