diff --git a/nodejs.spec b/nodejs.spec index c1bc216..9926473 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -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 - 1:18.14.2-3 - Update bundled c-ares to 1.19.1