Enable LTO during build

This commit is contained in:
Jan Staněk 2023-07-11 17:30:34 +02:00
parent b243cf54dc
commit 7815f44b24
No known key found for this signature in database
GPG Key ID: 2972F2037B243B6D
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,8 @@
%bcond_with python3_fixup
# LTO is currently broken on Node.js builds
# NodeJS uses it's own set of LTO flags, and is generally not compatible
# with globally enabling them; use the --enable-lto configure flag instead.
%define _lto_cflags %{nil}
# Heavy-handed approach to avoiding issues with python
@ -425,6 +426,7 @@ export CFLAGS="%{optflags} ${extra_cflags[*]}" CXXFLAGS="%{optflags} ${extra_cfl
export LDFLAGS="%{build_ldflags}"
%{__python3} configure.py --prefix=%{_prefix} --verbose \
--enable-lto \
--shared-openssl \
--shared-zlib \
--shared-brotli \
@ -635,6 +637,8 @@ NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules:%{buildroot}%{_prefix}/lib/nod
Resolves: CVE-2023-30581 CVE-2023-30588 CVE-2023-30589 CVE-2023-30590
- Replace /usr/etc/npmrc symlink with builtin configuration
Resolves: rhbz#2222285
- Enable LTO
Resolves: rhbz#1990096
* Tue May 30 2023 Jan Staněk <jstanek@redhat.com> - 1:18.14.2-3
- Update bundled c-ares to 1.19.1