diff --git a/gcc.changes b/gcc.changes index 6b35332..fbd90bf 100644 --- a/gcc.changes +++ b/gcc.changes @@ -2,6 +2,7 @@ Thu Apr 29 08:45:13 UTC 2021 - Richard Biener - Switch gcc to default 11. +- Adjust liblto_plugin.so naming for GCC 11. ------------------------------------------------------------------- Thu Apr 29 08:36:04 UTC 2021 - Richard Biener diff --git a/gcc.spec b/gcc.spec index 0f8393a..1bcebc0 100644 --- a/gcc.spec +++ b/gcc.spec @@ -479,7 +479,7 @@ ln -sf g++-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/c++.1.gz ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz # Install the LTO linker plugin so it is auto-loaded by BFD mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/bfd-plugins -ln -s `gcc-%{gcc_suffix} -print-file-name=liblto_plugin.so.0.0.0` $RPM_BUILD_ROOT%{_prefix}/lib/bfd-plugins/liblto_plugin.so.0.0.0 +ln -s `gcc-%{gcc_suffix} -print-file-name=liblto_plugin.so` $RPM_BUILD_ROOT%{_prefix}/lib/bfd-plugins/liblto_plugin.so dir=`gcc-%{gcc_suffix} -print-prog-name=cc1` dir=${dir%/cc1}