Add -O2 to nginx.so

This commit is contained in:
Luboš Uhliarik 2024-07-31 15:38:30 +02:00
parent 982a1dba7e
commit 42bea43805

View File

@ -290,7 +290,7 @@ mv ../%{name}-%{version}-%{release}-src .
# variable.
export DESTDIR=%{buildroot}
# So the perl module finds its symbols:
nginx_ldopts="$RPM_LD_FLAGS -Wl,-E"
nginx_ldopts="$RPM_LD_FLAGS -Wl,-E -O2"
if ! ./configure \
--prefix=%{_datadir}/nginx \
--sbin-path=%{_sbindir}/nginx \