From 13b19853566ec4e8a88e36a5cab5f15d7ba65218ac3229c16613eeb83ff6a694 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 29 Apr 2021 08:56:00 +0000 Subject: [PATCH] - Adjust liblto_plugin.so naming for GCC 11. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=104 --- gcc.changes | 1 + gcc.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}