Skip to content

Commit 45bbbda

Browse files
authored
Revert flto
1 parent 9e260e5 commit 45bbbda

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/install/nginx/nginx-compile.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ if [ "${INSTALL_HTTP3}" = 1 ];
5454
--sbin-path=/usr/sbin/nginx \
5555
--build=nginx-${NGINX_VER}-${DT}-enginescript \
5656
--builddir=nginx-${NGINX_VER} \
57-
--with-cc-opt="-march=native -mtune=native -DTCP_FASTOPEN=23 -O3 -fcode-hoisting -flto -fPIC -fstack-protector-strong $LD_FLAG -Werror=format-security -Wformat -Wimplicit-fallthrough=0 -Wno-error=pointer-sign -Wno-implicit-function-declaration -Wno-int-conversion -Wno-cast-function-type -Wno-deprecated-declarations -Wno-error=date-time -Wno-error=strict-aliasing -Wno-format-extra-args --param=ssp-buffer-size=4" \
58-
--with-ld-opt="-Wl,-z,relro -Wl,-z,now -Wl,-s -fPIC -flto $LD_FLAG" \
57+
--with-cc-opt="-march=native -mtune=native -DTCP_FASTOPEN=23 -O3 -fcode-hoisting -flto=auto -fPIC -fstack-protector-strong $LD_FLAG -Werror=format-security -Wformat -Wimplicit-fallthrough=0 -Wno-error=pointer-sign -Wno-implicit-function-declaration -Wno-int-conversion -Wno-cast-function-type -Wno-deprecated-declarations -Wno-error=date-time -Wno-error=strict-aliasing -Wno-format-extra-args --param=ssp-buffer-size=4" \
58+
--with-ld-opt="-Wl,-z,relro -Wl,-z,now -Wl,-s -fPIC -flto=auto $LD_FLAG" \
5959
--with-openssl-opt="enable-ec_nistp_64_gcc_128 enable-ktls enable-tls1_2 enable-tls1_3 no-ssl3-method no-tls1-method no-tls1_1-method no-weak-ssl-ciphers zlib -fPIC -march=native --release" \
6060
--with-openssl=/usr/src/openssl-${OPENSSL_VER} \
6161
--with-libatomic \
@@ -101,8 +101,8 @@ if [ "${INSTALL_HTTP3}" = 1 ];
101101
--sbin-path=/usr/sbin/nginx \
102102
--build=nginx-${NGINX_VER}-${DT}-enginescript \
103103
--builddir=nginx-${NGINX_VER} \
104-
--with-cc-opt="-march=native -mtune=native -DTCP_FASTOPEN=23 -O3 -fcode-hoisting -flto -fPIC -fstack-protector-strong $LD_FLAG -Werror=format-security -Wformat -Wimplicit-fallthrough=0 -Wno-error=pointer-sign -Wno-implicit-function-declaration -Wno-int-conversion -Wno-cast-function-type -Wno-deprecated-declarations -Wno-error=date-time -Wno-error=strict-aliasing -Wno-format-extra-args --param=ssp-buffer-size=4" \
105-
--with-ld-opt="-Wl,-z,relro -Wl,-z,now -Wl,-s -fPIC -flto $LD_FLAG" \
104+
--with-cc-opt="-march=native -mtune=native -DTCP_FASTOPEN=23 -O3 -fcode-hoisting -flto=auto -fPIC -fstack-protector-strong $LD_FLAG -Werror=format-security -Wformat -Wimplicit-fallthrough=0 -Wno-error=pointer-sign -Wno-implicit-function-declaration -Wno-int-conversion -Wno-cast-function-type -Wno-deprecated-declarations -Wno-error=date-time -Wno-error=strict-aliasing -Wno-format-extra-args --param=ssp-buffer-size=4" \
105+
--with-ld-opt="-Wl,-z,relro -Wl,-z,now -Wl,-s -fPIC -flto=auto $LD_FLAG" \
106106
--with-openssl-opt="enable-ec_nistp_64_gcc_128 enable-ktls enable-tls1_2 enable-tls1_3 no-ssl3-method no-tls1-method no-tls1_1-method no-weak-ssl-ciphers zlib -fPIC -march=native --release" \
107107
--with-openssl=/usr/src/openssl-${OPENSSL_VER} \
108108
--with-libatomic \

0 commit comments

Comments
 (0)