2024-01-18 01:02:55 -06:00
|
|
|
%global scl_gcc_prefix /opt/rh/gcc-toolset-12/root/usr/lib/gcc
|
|
|
|
%global scl_plugin_prefix %{scl_gcc_prefix}/x86_64-redhat-linux/12/plugin
|
|
|
|
|
|
|
|
Name: gcc-toolset-12-annobin-symlink
|
|
|
|
Version: 12.0.0
|
2024-02-20 00:18:58 -06:00
|
|
|
Release: 2%{?dist}
|
2024-01-18 01:02:55 -06:00
|
|
|
Summary: A symlink gcc-annobin.so to gts-gcc-annobin.so
|
|
|
|
|
|
|
|
License: Beerware
|
|
|
|
URL: http://gcc.gnu.org
|
|
|
|
|
|
|
|
Requires: gcc-toolset-12-gcc-plugin-annobin
|
|
|
|
|
|
|
|
%description
|
|
|
|
Quick and dirty hack for gcc error:
|
|
|
|
cc1: fatal error: inaccessible plugin file /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/plugin/gcc-annobin.so expanded from short plugin name gcc-annobin: No such file or directory
|
|
|
|
A symlink gcc-annobin.so to gts-gcc-annobin.so fixes the issue
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}%{scl_plugin_prefix}
|
2024-02-20 00:18:58 -06:00
|
|
|
ln -svf gts-annobin.so %{buildroot}%{scl_plugin_prefix}/annobin.so
|
2024-01-18 01:02:55 -06:00
|
|
|
ln -svf gts-gcc-annobin.so %{buildroot}%{scl_plugin_prefix}/gcc-annobin.so
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2024-02-20 00:18:58 -06:00
|
|
|
%{scl_plugin_prefix}/annobin.so
|
2024-01-18 01:02:55 -06:00
|
|
|
%{scl_plugin_prefix}/gcc-annobin.so
|
|
|
|
|
|
|
|
%changelog
|
2024-02-20 00:18:58 -06:00
|
|
|
* Fri Feb 16 2024 Sandino Araico Sánchez <sandino@sandino.net>
|
|
|
|
- Liga simbólica también para annobin.so
|
|
|
|
|
2024-01-18 01:02:55 -06:00
|
|
|
* Thu Jan 18 2024 Sandino Araico Sánchez <sandino@sandino.net>
|
|
|
|
- Liga simbólica para que jale esta chingadera
|
|
|
|
- cd /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/plugin
|
|
|
|
- ln -svf gts-gcc-annobin.so gcc-annobin.so
|